25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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);
- }
- }
|