mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
20 lines
448 B
C#
20 lines
448 B
C#
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);
|
|
}
|
|
}
|