Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Domain;
-
- namespace Services
- {
- public interface IBaseService<T>
- where T : BaseEntity
- {
-
- void Add(T entity);
- void Update(T entity);
- void Delete(Guid id);
- public void DeleteWithoutSave(Guid id);
- public void SaveChanges();
-
- IQueryable<T> GetQueryable();
- IQueryable<T> GetWithPaging(int page = 1, int pageSize = 100);
- T GetById(Guid id);
- void AddOrUpdate(T entity);
- bool CanBeDeleted(Guid id);
- }
- }
|