07 2018 档案

摘要:给定 x=6 以及 y=3,下表解释了逻辑运算符: 运算符 描述 例子 && and (x 1) 为 true || or (x==5 || y==5) 为 false ! not !(x==y) 为 true 阅读全文
posted @ 2018-07-26 18:20 韩梦芫 阅读(2989) 评论(0) 推荐(0) 编辑
摘要:NotMapped特性可以应用到领域类的属性中,Code-First默认的约定,是为所有带有get,和set属性选择器的属性创建数据列。。 NotManpped特性打破了这个约定,你可以使用NotMapped特性到某个属性上面,然后Code-First就不会为这个属性就不会在数据表中创建列了。 我们 阅读全文
posted @ 2018-07-24 14:56 韩梦芫 阅读(4538) 评论(0) 推荐(0) 编辑
摘要:SELECT 表名=case when a.colorder=1 then d.name else '' end, 表说明=case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号=a.colorder, 字段名=a.name... 阅读全文
posted @ 2018-07-23 15:18 韩梦芫 阅读(180) 评论(0) 推荐(0) 编辑
摘要:以上语句就会出现这个提示:LINQ to Entities 不识别方法“System.String ToString()”,因此该方法无法转换为存储表达式。 解决方法有两种 一、使用SqlFunctions 1、 2、 3、 注意:月份只有1位数!还不够完美。 二、Linq-to-entities 阅读全文
posted @ 2018-07-20 14:45 韩梦芫 阅读(572) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示