摘要: SQL、LINQ、Lambda 三种用法 颜色注释: SQL LinqToSql Lambda QA 1、 查询Student表中的所有记录的Sname、Ssex和Class列。 select sname,ssex,class from student Linq: from s in Students select new { s.SNAME, s... 阅读全文
posted @ 2016-12-01 10:46 Bruce_Cheung 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 在使用EF时,想要比较字符串类型的日期时,参考以下: SQL语句: Lambda寫法: 更规范的写法: 本文来自:http://www.itdos.com/CSharp/20150408/0127321.html 转载请保留此链接,谢谢! 阅读全文
posted @ 2016-12-01 10:04 Bruce_Cheung 阅读(2613) 评论(1) 推荐(0) 编辑