Files
WhiteLagoon/WhiteLagoon.Application/Common/Interfaces/IRepository.cs
T
2025-05-20 11:46:50 -04:00

20 lines
651 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using WhiteLagoon.Domain.Entities;
namespace WhiteLagoon.Application.Common.Interfaces
{
public interface IRepository<T> where T : class
{
IEnumerable<T> GetAll(Expression<Func<T, bool>>? filter = null, string? includeProperties = null, bool tracked = false);
T Get(Expression<Func<T, bool>> filter, string? includeProperties = null, bool tracked = false);
void Add(T entity);
bool Any(Expression<Func<T, bool>> filter);
void Remove(T entity);
}
}