Best tutorial on using entity infrastructure, POCO and MySQL

I am looking for a solid tutorial on using Entity Framework with POCO (i.e. without using a constructor) using MySQL as the source. I am looking for something a semi-in-depth coverage of things like attributes (for example, how to match the name of a table / database field with a class / field name that is different). I am also looking for C #, not VB. Does anyone know about such tutorials?

+4
source share
1 answer

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

For POCOs, you either encode the mappings, and then I assume that you recently used EF 4 Futures CTP 5, or you use the constructor, and this is what is usually found in EF 4.

If EF 4 POCO support by default or the POCO pattern in EF CTP5 is implied, this should be useful:

http://thedatafarm.com/blog/data-access/agile-entity-framework-4-repository-part-1-model-and-poco-classes/ (entire series) Usually http://thedatafarm.com/blog / search? q = poco or if the 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 use only code, you need to implement it before release and have some problems when working with.

+4
source

Source: https://habr.com/ru/post/1333116/


All Articles