using System; using System.Linq.Expressions; using System.Threading.Tasks; namespace FreeSql { public interface IReadOnlyRepository : IBaseRepository where TEntity : class { IDataFilter DataFilter { get; } ISelect Select { get; } ISelect Where(Expression> exp); ISelect WhereIf(bool condition, Expression> exp); } public interface IReadOnlyRepository : IReadOnlyRepository where TEntity : class { TEntity Get(TKey id); TEntity Find(TKey id); #if net40 #else Task GetAsync(TKey id); Task FindAsync(TKey id); #endif } }