You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
775 B

using System.Linq.Expressions;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Query;
using WTA.Shared.Domain;
namespace WTA.Shared.Data;
public interface IRepository<TEntity> where TEntity : BaseEntity
{
IQueryable<TEntity> Queryable();
IQueryable<TEntity> AsNoTracking();
IQueryable<TEntity> AsNoTrackingWithIdentityResolution();
void Update(Expression<Func<SetPropertyCalls<TEntity>, SetPropertyCalls<TEntity>>> setPropertyCalls, Expression<Func<TEntity, bool>> predicate);
void Delete(Guid[] guids);
void Delete(Expression<Func<TEntity, bool>> predicate);
void Insert(TEntity entity);
void SaveChanges();
DbContext DbContext();
void DisableSoftDeleteFilter();
void DisableTenantFilter();
}