Beispiel #1
0
 public static void Modify(this IDbConnection cnn, string tableName, dynamic param)
 {
     SqlMapper.Execute(cnn, DynamicQuery.GetUpdateQuery(tableName, param), param);
 }
Beispiel #2
0
        public static int Insert <T>(this IDbConnection cnn, string tableName, dynamic param)
        {
            List <long> result = SqlMapper.Query <long>(cnn, DynamicQuery.GetInsertQuery(tableName, param), param);

            return((int)result.FirstOrDefault());
        }