开发者

best tutorial for using the entity framework, POCO, and MySQL [closed]

开发者 https://www.devze.com 2023-01-31 17:28 出处:网络
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

I am looking for a solid tutorial on using the Entity Framework with POCO (ie. not using the designer) using MySQL as the back-end. I am looking for something that is semi-in-depth covering stuff like attributes (like how to map a database table/field name to a class/field name th开发者_如何学Cat is different). Also I am looking for C#, not VB. Does anyone know of any such tutorials?


For EF with MySQL, check this other question:
Using MySQL with Entity Framework
Basically you need to get a connector from MySQL and work normally from there.

For POCOs, either you do code the mappings, and then I assume you use EF 4 Futures CTP 5 recently releaed, or you use the designer, and this is what is normally in EF 4.

If the meant is default EF 4 POCO support, or POCO template in EF CTP5, those should be helpful reads:

http://thedatafarm.com/blog/data-access/agile-entity-framework-4-repository-part-1-model-and-poco-classes/ (the entire series) Generally http://thedatafarm.com/blog/search?q=poco or if page is too slow http://www.google.com.au/#q=poco+site:thedatafarm.com

http://blogs.msdn.com/b/adonet/archive/2009/05/28/poco-in-the-entity-framework-part-2-complex-types-deferred-loading-and-explicit-loading.aspx http://blogs.msdn.com/b/adonet/archive/2009/06/10/poco-in-the-entity-framework-part-3-change-tracking-with-poco.aspx

If you are using the code only way, you need to realize it's pre-release and has some issues when working with.

0

精彩评论

暂无评论...
验证码 换一张
取 消