DBLayer,我最近開源的數(shù)據(jù)庫輕量級orm框架,目前支持sqlserver、mysql、oracle, 特別做了分頁的封裝。
這個(gè)框架從七八年前開始逐漸升級而來,也經(jīng)歷了不少項(xiàng)目,希望可以將大家從sql字符串中解放出來。
開源地址
https://github.com/wutao0315/DBLayer
訪問代碼案例
/// <summary> /// 分頁查詢 /// </summary> /// <param name="condition">查詢條件</param> /// <returns></returns> public IEnumerable<SysUser> Seach(SysUserCondition.Search condition) { var page = new Pager<SysUserCondition.Search>() { Condition = condition, Table = "sys_user", Key = "user_id", Order = string.Empty, Field = "*", WhereAction =&nbs