当我尝试同时使用这两个功能时,我的模型出现编译错误(请注意,我已将 _CT 表的实体重命名为“ContentHistory”,并且我的 SL4 单元测试项目名为“DomainServices.UnitTest”:
Error 39 Property 'DomainServices.Web.ContentHistory.C___seqval' is marked as a key
property and is of Type 'System.Byte[]', which is not a supported type for a key member.
DomainServices.UnitTests
这里有没有人让 CDC 和 EF4 一起玩得很好?