CodeFirst EF4.1 MVC Against legacy database - Multiplicity conflicts

前端 未结 4 1303
闹比i
闹比i 2020-12-13 17:18

No matter which way I mix it, it gives me errors. I have a feeling I\'m missing something obvious as I keep getting these errors.

One or more validation

4条回答
  •  佛祖请我去吃肉
    2020-12-13 17:46

    Make sure you don't use HasKey() in combination with HasOptional() in your mappings. That was causing this error in my case.

提交回复
热议问题