示例#1
0
        public async Task <int> Insert(List <TEntity> entitys)
        {
            var sqls = new List <string>();

            foreach (var entity in entitys)
            {
                string sql = EntityToSql.AddSql(entity);
                sqls.Add(sql);
            }

            await dbHelper.ExecuteSqlTran(sqls);

            return(sqls.Count);
        }