/// <summary> /// 插入或更新 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="entity"></param> /// <returns></returns> public int InsertOrUpdate <T>(Table table, T entity, params Field[] fields) where T : Entity { return(dbTrans.InsertOrUpdate <T>(table, entity, fields)); }
/// <summary> /// 插入或更新 /// </summary> /// <typeparam name="T"></typeparam> /// <param name="entity"></param> /// <returns></returns> public int InsertOrUpdate <T>(Table table, T entity) where T : Entity { return(dbTrans.InsertOrUpdate <T>(table, entity)); }