using System.Linq.Expressions; namespace Serein.DbSql { public interface IRepositoryBase where TEntity : class, new() { TEntity GetModelByID(dynamic ID); int Add(TEntity Model); int Update(TEntity Model); bool DeleteByID(dynamic ID); bool Delete(Expression> where); int UpdateColumns(TEntity model, Expression> expression); } }