Exemplo n.º 1
0
 /// <summary>
 /// 执行存储过程操作
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="p"></param>
 /// <param name="actionflag">动作区分标记</param>
 /// <returns></returns>
 public virtual UnitDataCollection ExcuteSP <T>(UnitParameter p, string actionflag) where T : IDBUnit <UnitParameter>
 {
     return(DBUnitProxy.ExcuteSP <T>(p, actionflag));
 }
Exemplo n.º 2
0
 /// <summary>
 /// 非查询类的db操作
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="p"></param>
 /// <param name="actionflag">动作区分标记</param>
 public virtual void NonQuery <T>(UnitParameter p, string actionflag) where T : IDBUnit <UnitParameter>
 {
     DBUnitProxy.NonQuery <T>(p, actionflag);
 }
Exemplo n.º 3
0
 /// <summary>
 /// 通过json对象执行标准化DB操作
 /// </summary>
 /// <param name="p"></param>
 /// <param name="json"></param>
 /// <param name="islog">用于设定是否记录解析结果,以便进行debug操作</param>
 /// <returns></returns>
 public virtual UnitDataCollection Excute(UnitParameter p, FrameDLRObject json, bool islog = false)
 {
     return(DBUnitProxy.Excute(p, json, islog));
 }
Exemplo n.º 4
0
 /// <summary>
 /// 翻页查询
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="p"></param>
 /// <param name="actionflag">动作区分标记</param>
 /// <returns></returns>
 public virtual UnitDataCollection QueryByPage <T>(UnitParameter p, string actionflag) where T : IDBUnit <UnitParameter>
 {
     return(DBUnitProxy.QueryByPage <T>(p, actionflag));
 }
Exemplo n.º 5
0
 /// <summary>
 /// 标准化DB执行操作
 /// </summary>
 /// <param name="p"></param>
 /// <param name="express"></param>
 /// <param name="islog">用于设定是否记录解析结果,以便进行debug操作</param>
 /// <returns></returns>
 public virtual UnitDataCollection Excute(UnitParameter p, DBExpress express, bool islog = false)
 {
     express.IsLog = islog;
     return(DBUnitProxy.Excute(p, express));
 }