mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-20 16:26:34 +08:00
GIT练习
This commit is contained in:
19
Library/DbSql/IRepositoryBase.cs
Normal file
19
Library/DbSql/IRepositoryBase.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace Serein.DbSql
|
||||
{
|
||||
public interface IRepositoryBase<TEntity> where TEntity : class, new()
|
||||
{
|
||||
TEntity GetModelByID(dynamic ID);
|
||||
|
||||
int Add(TEntity Model);
|
||||
|
||||
int Update(TEntity Model);
|
||||
|
||||
bool DeleteByID(dynamic ID);
|
||||
|
||||
bool Delete(Expression<Func<TEntity, bool>> where);
|
||||
|
||||
int UpdateColumns(TEntity model, Expression<Func<TEntity, object>> expression);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user