12345678910111213141516171819 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- namespace YLShipBuildLandMap.Services.Common
- {
- public interface IBaseService<TEntity> where TEntity : class
- {
- TEntity Get(object keyValues);
- int Delete(Expression<Func<TEntity, bool>> predicate);
- int Update(object keyValue, Func<TEntity, TEntity> updateFunc);
- int UpdateFromQuery(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TEntity>> updateFunc);
- }
- }
|