mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-24 03:32:50 +08:00
22 lines
453 B
C#
22 lines
453 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace FreeSql {
|
|
public interface IReadOnlyRepository<TEntity> : IRepository
|
|
where TEntity : class {
|
|
|
|
ISelect<TEntity> Select { get; }
|
|
}
|
|
|
|
public interface IReadOnlyRepository<TEntity, TKey> : IReadOnlyRepository<TEntity>
|
|
where TEntity : class {
|
|
TEntity Get(TKey id);
|
|
|
|
Task<TEntity> GetAsync(TKey id);
|
|
|
|
TEntity Find(TKey id);
|
|
|
|
Task<TEntity> FindAsync(TKey id);
|
|
}
|
|
}
|