repository migration

This commit is contained in:
2025-05-20 11:46:50 -04:00
commit bf536b8774
213 changed files with 117679 additions and 0 deletions
@@ -0,0 +1,19 @@
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);
}
}