I moved a small EF 4.3 solution to EF5 (and to .NET 4.5) so I can add the new enum support to it. Then I started the process all over again and captured it as a screencast. Pluralsight is hosting it on their blog here: Video: Entity Framework 5 New Features Sneak Peek . It’s 14 minutes long. I...
Read More...Entries categorized 'Data Access' ↓
Video: Entity Framework 5 Enums and Moving Solution from EF 4.3
Wednesday, April 04 2012 - Data Access
Update to EF5 and DbLocal Default in Config
Tuesday, April 03 2012 - Data Access
A few weeks ago I wrote a blog post showing how EF5 uses DbLocal as its default database along with a screenshot of the configuration info that EF5 puts into your config (web.config or app.config) of the project that you’ve installed EF5 into. Since then, EF5 Beta 2 was released and the details have...
Read More...EF5: Where are my DataAnnotations?
Tuesday, April 03 2012 - Data Access
EF 4.x: EF 4.1+ has a DataAnnotations namespace for the new EF related annotations. Most of them are related to database schema. EF 5 Not even a DataAnnotations namespace in here. That’s because the annotations got incorporated into .NET 4.5. .NET 4.5 A new namespace within System.ComponentModel...
Read More...Moving Projects from EF 4.1,2,3–> EF5Beta: Don’t do what I did
Wednesday, March 28 2012 - Data Access
What did I do? I wasted hours and hours so that I can share this lesson with you. The bottom line is that I’m kindofa dope sometimes. I had an EF 4.3 project that I moved onto a new machine with VS11 Beta. I wanted to see the new enum support in action. So, I installed the new EF 5 by opening up...
Read More...EF Code First Migrations Update-Database Parameters Documentation?
Friday, March 16 2012 - Data Access
In my recent Code First Migrations course on Pluralsight.com, I showed how you can get detailed information about the parameters of update-database. These can also be used if you want to execute the migrations from the command line using the counterpart migrate.exe command rather than from within Visual...
Read More...VS11 and EF5: Where’s that database that Code First created?
Tuesday, March 13 2012 - Data Access
Visual Studio 11 brings a new development database -- SQL Server Local Database. Bye bye SQL Server Express dependency. I typically let Code First run with it’s default database of choice – up to now that’s been SQL Server Express -- when I’m creating simple samples where I don’t care too much...
Read More...Updating to Entity Framework v.Latest the Easy Way
Tuesday, March 13 2012 - Data Access
Entity Framework is evolving rapidly which is why they are releasing via NuGet rather than being strapped to the .NET release cycle. (You can read more about the how’s and why’s of EF’s release cycle here: http://blogs.msdn.com/b/diego/archive/2012/01/15/why-entity-framework-vnext-will-be-ef5-and-nothing...
Read More...EF Code First Migrations, Update-Database outside of Visual Studio
Monday, March 12 2012 - Data Access
In a recent blog post comment, someone asked “can you please tell them [EF Dev Team] some developers would like to use the Power Shell command script and not PM console to update database.” If you look inside the package folder for Entity Framework 4.3 (or 4.3.1 or whatever is the current version in...
Read More...Entity Framework Moves to the Big House
Friday, March 09 2012 - Data Access
Modified the original title of this post because it was derived from a misquote. Scott Hanselman clarifies with: The quote (what I said was) "EF is joining our team under ScottGu" and "EF is now the M in MVC". Scott Guthrie chimes in with “Yes - now part of my team (which includes...
Read More...New EF Code First Migrations Video on Pluralsight
Tuesday, March 06 2012 - Data Access
My newest course is live on Pluralsight.com . This one is about using the new data migrations feature of Entity Framework Code First. These were first introduced with EF 4.3. Migrations lets you update your database schema when your model changes rather than having code first completely drop and recreate...
Read More...



