摘要: 这种方式接受各种参数,才能使用Lambda表达式。int totalCount; var modellist = query.GetList(e => e.Status != DomainStatue.DELETE && (d.Id > 0 ? ... 阅读全文
posted @ 2014-11-21 10:15 爱国蚂蚁 阅读(689) 评论(0) 推荐(0) 编辑
摘要: protected IDictionary _outputValues = new Dictionary(StringComparer.OrdinalIgnoreCase); /// /// 附加参数 /// public IDiction... 阅读全文
posted @ 2014-11-21 09:51 爱国蚂蚁 阅读(623) 评论(0) 推荐(0) 编辑
摘要: var dogType = System.Reflection.Assembly.Load("bigs").GetType("bigs.big");//注意:命名空间加上类名! dynamic dog = Activator.CreateInstance(dogType); ... 阅读全文
posted @ 2014-11-20 17:44 爱国蚂蚁 阅读(296) 评论(0) 推荐(0) 编辑
摘要: /// /// 如何写出一个无返回值,可接受LINQ参数的方法。 /// public class product { public string name { get; set; } public int id { get; set;... 阅读全文
posted @ 2014-11-20 15:06 爱国蚂蚁 阅读(1871) 评论(2) 推荐(0) 编辑