subsonic 3.0 为tinyint sql 列创建字节数组
我尝试使用 Subsonic 生成 DAL,但在使用 LinqToEntities T4 模板生成类时注意到一个错误。 我注意到表中的一列具有tinyint 类型,在为该列生成属性时,它创建了一个返回 byte[] 而不是字节的属性。
另外另一个表有一个名为 ModifiedBy 的列,其类型设置为smallint。 Subsonic 在类中正确创建了属性,但在其中一个 PropertyChanged 方法中,它期望该字段有一个字符串,并将其值设置为 Environment.UserName。
以前有人遇到过这个问题吗? 蒂亚..
I was trying to use Subsonic to generate my DAL, but I noticed a bug while generating Classes using LinqToEntities T4 templates.
I noticed that one of the columns in a table was having the type tinyint, while generating a Property for this column it created one which returns a byte[] instead of a byte.
Also another Table had a Column named ModifiedBy with the type set to smallint. Subsonic created the Property in the class correctly as short however in one of the PropertyChanged methods it was expecting a string for this field and was setting its value to Environment.UserName.
Has anyone faced this issue before?
TIA..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您现在可能已经解决了这个问题,但是..
Worked for me
you may have solved this by now but..
Worked for me