using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace FreeSql { public class GuidRepository : BaseRepository where TEntity : class { public GuidRepository(IFreeSql fsql) : base(fsql) { } public override List Insert(List entity) { _fsql.Insert().AppendData(entity).ExecuteAffrows(); return entity; } async public override Task> InsertAsync(List entity) { await _fsql.Insert().AppendData(entity).ExecuteAffrowsAsync(); return entity; } public override TEntity Insert(TEntity entity) { _fsql.Insert().AppendData(entity).ExecuteAffrows(); return entity; } async public override Task InsertAsync(TEntity entity) { await _fsql.Insert().AppendData(entity).ExecuteAffrowsAsync(); return entity; } } }