Move Configurations to Separate Class in Code-First: By now, we have configured all the domain classes in OnModelCreating method in the previous secti ...
分类:
其他好文 时间:
2016-07-05 18:56:25
阅读次数:
194
Configure One-to-Many Relationship: Here, we will learn how to configure One-to-Many relationship between two entities in code-first. Take an example ...
分类:
其他好文 时间:
2016-07-05 18:52:32
阅读次数:
263
Code-based Migration: Code-based migration is useful when you want more control on the migration, i.e. set default value of the column, etc. Code-Firs ...
分类:
其他好文 时间:
2016-07-05 18:43:55
阅读次数:
265
Entity Framework Power Tools: Entity Framework Power Tools (currently in beta 3) has been released. EF Power Tools is useful mainly in reverse enginee ...
分类:
其他好文 时间:
2016-07-05 18:40:15
阅读次数:
156
Seed Database in Code-First: You can insert data into your database tables during the database initialization process. This will be important if you w ...
分类:
其他好文 时间:
2016-07-05 18:36:19
阅读次数:
122
Automated Migration: Entity framework 4.3 has introduced Automated Migration so that you don't have to process database migration manually in the code ...
分类:
其他好文 时间:
2016-07-05 18:35:49
阅读次数:
186
Database Initialization Strategies in Code-First: You already created a database after running your Code-First application the first time, but what ab ...
分类:
数据库 时间:
2016-07-05 18:34:00
阅读次数:
197
ConcurrencyCheck Attribute: ConcurrencyCheck attribute can be applied to a property of a domain class. Code First takes the value of a column in "wher ...
分类:
其他好文 时间:
2016-07-05 17:14:09
阅读次数:
201
Entity Mappings using Fluent API: Here, we will learn how to configure an entity using Fluent API. We will use the following Student and Standard doma ...
分类:
移动开发 时间:
2016-07-05 17:12:45
阅读次数:
361
Fluent API in Code-First: We have seen different DataAnnotations attributes in the previous sections to override default Code-First Conventions. Here, ...