DMSFrame 之查詢表達式用法(一)

where條件spa

            WhereClip<Adm_User> where = new WhereClip<Adm_User>(q => q.DeleteFlag == false);
            where.And(q => q.UserID == 1);
            where.Like("UserName", "123");
            where.GreaterThan("UserName", "A");
            where.Equal("TrueName", "admin");

order by 排序code

        OrderByClip<Adm_User> orderby = new OrderByClip<Adm_User>();
            orderby.Appends("UserID", true);//後一個參數表示是否倒序
            orderby.Appends(q => q.OrderBy(q.UserID, q.UserName.Desc()));

group by 分組 blog

            GroupByClip<Adm_User> groupby = new GroupByClip<Adm_User>();
            groupby.Appends("UserID");
            groupby.Appends(q => q.GroupBy(q.UserID, q.UserName));

 能夠說:DMSFrame在查詢上仍是很是靈活的.只有您想不到的,沒有作不到的方式排序

相關文章
相關標籤/搜索