/// <summary> /// 条件 /// </summary> /// <typeparam name="T">实体类</typeparam> /// <param name="t"></param> /// <param name="OperType">操作类型</param> /// <param name="Exp">条件</param> /// <param name="Sort">排序</param> /// <returns></returns> public static GDModel.MergerModel GDCodition <T>(this T t, SQLEnum.OperationType OperType, Expression <Func <T, bool> > Exp = null) where T : new() { SQLiteBSHelper Bs = new SQLiteBSHelper(ConnectName); return(Bs.GDCodition(t, OperType, Exp)); }
/// <summary> /// 条件 /// </summary> /// <typeparam name="T">实体类</typeparam> /// <param name="t"></param> /// <param name="Exp">条件</param> /// <param name="Sort">排序</param> /// <returns></returns> public static GDModel.MergerModel GDCodition <T, TRuslt>(this T t, Expression <Func <T, bool> > Exp = null, Expression <Func <T, TRuslt> > OrderBy = null, SQLEnum.SortType SType = SQLEnum.SortType.Desc) where T : new() { SQLiteBSHelper Bs = new SQLiteBSHelper(ConnectName); return(Bs.GDCodition(t, Exp, OrderBy, SType)); }