예제 #1
0
        public async Task <int> Insert(TEntity entity)
        {
            string sql    = EntityToSql.AddSql(entity);
            var    result = Convert.ToInt32(await dbHelper.GetSingle(sql));

            return(result);
        }