I have been using Npgsql with Entity Framework + .net, while using column type as bit in the ssdl part of edmx file, its throwing an error like "The type bit is not a primitive type" .
Can anyone tell me how to use bit type with edmx file.
Thanks.
Did you use bit
for boolean types? If so, you need to change your bit
type to bool
in your database.
If not, you need to use smallint
in Entity Model.
可能是数据库不支持您要存储的某种数据类型。
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.