add examples repository_01

This commit is contained in:
28810
2019-02-18 14:36:31 +08:00
parent 5cfc359b80
commit fb2fee33a3
16 changed files with 380 additions and 17 deletions

View File

@ -0,0 +1,21 @@
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);
}
}