Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 EF4 CTP4 中,我们有 RegisterSet 函数可以在模型构建器中通用注册实体。我们使用 Configurations.Add() 来注册实体的映射。如何实现这个 EF4 CTP 5
我找到了问题的答案。他们公开了 ModelBuilder.Entity().{Configuration} 之类的 Property/IsRequired 以及所有简单类型。对于复杂实体,有诸如 ComplexTypes 之类的函数。