Visual Studio 2010 Beta 2 + Entity Framework 4 を試してみました。

Visual Studio 2010 Beta 2 (English) をインストールしてみました。  

 

こんな画面

 

全体的に見た目は Beta 1と大差ないですね。しかし、パフォーマンスがアップしているのでちょこちょこ触ってみても、かなり軽快に動作することが分かります。(Beta 1は正直、遅かったので、、、、、これはうれしい)。246 days remaining と書いてあるので、8カ月間くらいは使えるみたいです。まぁ、それまでにはRTM版になっているとは思います。

 

 

 

ちょっとだけ、先日ご紹介した Entity Framework の機能も確認してみましょう。あっ。

EDM Wizard

 

「Include foreign key columns in the model」なるものが追加されています。これが Entity に対して Foreign Key のプロパティを追加する機能ですね。

EDMデザイナ

やっぱり Foreign Key が employee エンティティのプロパティに追加されています。

ついでに生成された Object Contextの中身をみてみましょう。

 

ObjectContext コード(C#)

やっぱり、、、、「this.ContextOptions.LazyLoadingEnabled = true」と記述してあるので遅延ロードはデフォルト True みたいです。

 

 

 

今後はもう少し他の機能もいろいろと確認していきたいと思います。

 

Demo

ストリーミングでデモが見れます。

•EDM Wizard naming the entities with proper plural and singular names and a few minor issues

•Impact that Foreign Keys has on Association Mappings

•Complex Type

• Insert/Update/Delete Stored procs to entities with Complex Types

•Creating functions from Stored Procedures that return results which do not map to an entity

•Quick look at Model First Design