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.

27 lines
678 B

using System.Linq.Expressions;
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(Expression<Func<TEntity, bool>> predicate);
void Insert(TEntity entity);
void SaveChanges();
void DisableSoftDeleteFilter();
void DisableTenantFilter();
}