[英]EF6 With TT Templates Guid is returning null
I have set in my sql server 2008 that I want a unique idenitifier and that the default value is to be 我在sql server 2008中设置了我想要一个唯一的标识符,并且默认值是
And in my edmx 在我的edmx中
I never had an issue with this in EF5 it always set it fine why in ef6 is it being returned as null ie its displaying as 我从来没有在EF5中遇到任何问题,它总是很好,为什么在EF6中将它返回为null,即显示为
00000000-0000-0000-0000-000000000000
00000000-0000-0000-0000-000000000000
将StoreGeneratedPattern
更改为Identity
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.