示例#1
0
 /// <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));
 }
示例#2
0
 /// <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));
 }