摘要:
1 Install-Package EntityFramework 2 创建实体类 public class Blog { public int BlogId { get; set; } public string Name { get; set; } } 3 创建context public cl 阅读全文
摘要:
group having 分页等 var ev = OrmLiteConfig.DialectProvider.SqlExpression<Author (); group的使用 同sql一样,注意group分组的字段要在select里 ev.Select(c = new { c.Birth... 阅读全文
摘要:
复杂点的使用1先看看这2个类class Customer { public int Id { get; set; } ...}class CustomerAddress { public int Id { get; set; } public int CustomerId { get; set; ... 阅读全文