IBaseService.cs 543 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Linq.Expressions;
  5. using System.Text;
  6. namespace YLShipBuildLandMap.Services.Common
  7. {
  8. public interface IBaseService<TEntity> where TEntity : class
  9. {
  10. TEntity Get(object keyValues);
  11. int Delete(Expression<Func<TEntity, bool>> predicate);
  12. int Update(object keyValue, Func<TEntity, TEntity> updateFunc);
  13. int UpdateFromQuery(Expression<Func<TEntity, bool>> predicate, Expression<Func<TEntity, TEntity>> updateFunc);
  14. }
  15. }