Kerosene是一个自适应和无配置的C#ORM库,基于C#dynamics的SQL语法,支持WCF、EntityFramework的POCO对象。
示例代码:
using Kerosene.ORM.Core;using Kerosene.ORM.Direct;var link = LinkFactory.Create();var cmd = link .From(x => x.Employees) .Where(x => x.LastName >= "P");foreach(var rec in cmd) Console.WriteLine("\n- Employee: {0}", rec);
评论