Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在研究 asp.net 应用程序,并且我已经从数据库生成了实体模型(edmx)。我看到数据库中所有 tinyint 的字段都转换为字节。当我尝试使用属性窗口修复模型并更改类型时,我开始收到模型验证错误。
请告诉我如何解决它
tinyInt会变成byte,smallInt会变成int16
http://msdn.microsoft.com/en-us/library/bb896344.aspx