An error occurred while saving entities that do not expose foreign key properties for their relationships

后端 未结 15 1408
难免孤独
难免孤独 2020-12-08 02:43

I have a simply code in Entity Framework 4.1 code first:

PasmISOContext db = new PasmISOContext();
var user = new User();
user.CreationDate = Da         


        
15条回答
  •  悲哀的现实
    2020-12-08 02:44

    I hade same probleme. in my case, it was due to datetime field with a null value. I had to passe a value to datetime and evrythings went fine

提交回复
热议问题