Entity Framework 4.1 Code First(sharp-code.net)

submitted by VelcrowVelcrow(50) 7 months, 26 days ago

This post focus on Entity Framework 4.1 Code First technology which allows developers to code their domain first and from that code generate database without writing any line of SQL code. Such approach is encourage by very popular Domain Driven Development methodologies.

2 comments |category: |Views: 109

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 7 months, 25 days ago 0

I just recently used EF Code First on a project, and I don't think I'll be using it again. I had to go through a number of hoops to get it to create the proper schema, even sometimes being forced to created relationships in code that don't *really* exist. This was the case when I had some sort of lookup table, sometimes it would duplicate records in the lookup table every time I referenced it from an FK relationship. Sometimes it would generate the schema incorrectly, mixing the classes together into one table which pretty much defeated the purpose of not making the schema by hand.
At this point, for extremely simple data models with very simple relationships it's a good timesaver. Other than that, I would think very hard about using it full time. Especially with the lack of proper migration support.

Reply

posted by vijaystvijayst(1311) 7 months, 25 days ago 0

Thanks for the post. A very good intro abt EFCF.

Reply

information Login or create an account to comment on this story