using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using System.Threading.Tasks; using Microsoft.EntityFrameworkCore.Storage; namespace _0_Framework.Domain; public interface IRepository where T:class { T Get(TKey id); List Get(); void Create(T entity); Task CreateAsync(T entity); bool ExistsIgnoreQueryFilter(Expression> expression); bool Exists(Expression> expression); void SaveChanges(); Task SaveChangesAsync(); Task BeginTransactionAsync(); }