2012-12-03 46 views

回答

1

我想自己回答這個問題。

  1. 下載並安裝U2NETDK V1.2.0 BETA enter image description here

  2. 確認安裝使用VS2010->幫助 - >關於

enter image description here

  • 使用控制面板確認安裝 - >程序功能
  • enter image description here

  • 啓動Visual Studio 2010轉到視圖 - >服務器Explorer的>添加連接。轉到「更改數據源」對話框。選擇「U2數據庫」 enter image description here

  • 填充連接字符串。測試連接。選擇「OK」 enter image description here

  • U2連接將服務器加入瀏覽 enter image description here

  • 打開VS2010 WinForm的應用。右鍵單擊解決方案資源管理器並添加新項目。 enter image description here

  • 選擇數據 - > ADO.NET實體數據模型。給出一個名字,例如'Student.edmx'。您將在EDM Designer中看到學生數據模型。 enter image description here

  • 選擇 '從數據庫生成' enter image description here

  • 選擇 'demoxxxxxx' 連接字符串

  • enter image description here

  • 選擇所有表並按'完成' enter image description here

  • 你會看到學生模型的實體數據設計 enter image description here

  • 選擇 '數據 - >顯示數據源' enter image description here

  • 打開Form Designer中的模式

  • enter image description here

    1. 打開工具箱。進入'數據'。將「DataGridView」拖放到表單設計器中。點擊 '選擇數據源' enter image description here

    2. 選擇 '添加項目數據源' enter image description here

    3. 選擇 '對象' enter image description here

    4. 選擇 'STUDENT_NF_SUB' enter image description here

    5. 你將會看到帶有學生實體元數據的'DataGridView'。 enter image description here

    6. 雙擊表單。它會帶你到後面的代碼。創建一個demoEntity上下文。查詢學生表並使用數據網格進行綁定。 enter image description here

    7. 進入調試 - >開始不調試 enter image description here

    8. 看到完成的應用程序 enter image description here

    0

    拉詹 - 您的演示展示了UniObjects工具包DOTNET的在1.2.0版本我急於檢查這一點,但在Rocket網站上搜索可供下載的最新版本是UO v1.1.1。有沒有辦法獲得新的比特?

    +0

    嗨Rich,感謝您提出這個問題。我們正在運行U2NETDK v1.2.0的BETA。您可以加入BETA計劃。您可以聯繫U2支持或發送電子郵件給我。我們將包括在我們的BETA中。然後你可以下載U2NETDK v 1.2.0。 您可以使用此電子郵件聯繫U2支持。 U2 Askus郵箱<[email protected]> Rajan –

    0

    請注意,U2NETDK v1.2.0已發佈,不再處於測試階段。要使用Visual Studio加載項,您必須從軟件提供商那裏獲得許可證。 ADO.NET提供程序和本機API(以前稱爲UO.NET)可免費獲得。 [email protected]是一個很好的電子郵件,用於提供一般產品信息;如果您與Rocket Software簽有支持維護合同,則該電子郵件地址爲[email protected]。如果您從ISV或分銷商那裏獲得維護,您可以聯繫他們尋求支持。

    相關問題