コード例 #1
0
 public static void Update(this IDbConnection cnn, string tableName, dynamic param)
 {
     SqlMapper.Execute(cnn, DynamicQuery.GetUpdateQuery(tableName, param), param);
 }
コード例 #2
0
        public static T Insert <T>(this IDbConnection cnn, string tableName, dynamic param)
        {
            IEnumerable <T> result = SqlMapper.Query <T>(cnn, DynamicQuery.GetInsertQuery(tableName, param), param);

            return(result.First());
        }