mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-12-14 15:15:47 +08:00
- FreeSql.Repository 增加 filter 参数,现实数据过滤 + 验证;
如:var postRepos = fsql.GetGuidRepository<Post>(a => a.TopicId == 1); postRepos CURD 方法都会以 lambad 条件作为查询或验证,Update/Insert验证错误时会抛出异常。 - ISelect 增加 First/FirstAsync;
This commit is contained in:
@@ -6,11 +6,11 @@ namespace FreeSql {
|
||||
where TEntity : class {
|
||||
TEntity Insert(TEntity entity);
|
||||
|
||||
List<TEntity> Insert(IEnumerable<TEntity> entity);
|
||||
List<TEntity> Insert(IEnumerable<TEntity> entitys);
|
||||
|
||||
Task<TEntity> InsertAsync(TEntity entity);
|
||||
|
||||
Task<List<TEntity>> InsertAsync(IEnumerable<TEntity> entity);
|
||||
Task<List<TEntity>> InsertAsync(IEnumerable<TEntity> entitys);
|
||||
|
||||
int Update(TEntity entity);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user