简体   繁体   中英

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

在此处输入图片说明

And in my 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

00000000-0000-0000-0000-000000000000

StoreGeneratedPattern更改为Identity

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM