예제 #1
0
 /// <summary>
 /// 实体插入dapper作实现
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="entity"></param>
 /// <returns></returns>
 public int Insert <T>(T entity, string NotUpdateColName = "") where T : class
 {
     return(ExecuteBySql(DatabaseCommon.InsertSql <T>(entity, NotUpdateColName).ToString(), DatabaseCommon.GetDynamicParameter <T>(entity)));
 }