using System.Collections.Generic; using System.Threading.Tasks; namespace FreeSql { public interface IReadOnlyRepository : IRepository where TEntity : class { ISelect Select { get; } } public interface IReadOnlyRepository : IReadOnlyRepository where TEntity : class { TEntity Get(TKey id); Task GetAsync(TKey id); TEntity Find(TKey id); Task FindAsync(TKey id); } }