Rotex.EfManager.AspNetCore by gbenga adetayo

<PackageReference Include="Rotex.EfManager.AspNetCore" Version="1.0.2" />

 IUnitOfWork

public interface IUnitOfWork : IDisposable
DatabaseFacade EfDatabase { get; }

void Add<T>(T obj)

void AddRange<T>(IEnumerable<T> obj)

void Attach<T>(T obj)

void Attach<T>(T[] obj)

void Attach<T>(IEnumerable<T> obj)

int Commit()

void Entry<T>(T obj, EntityState state)

void Evict<T>(T entity)

void Evict<T>(object[] keyValues)

IQueryable<T> Get<T>()

Key GetEntityKey<T, Key>(T entity) where Key : struct

object[] GetEntityKey<T>(T entity)

bool Remove<T>(T item)

bool RemoveRange<T>(IEnumerable<T> items)

IQueryable<T> SqlQuery<T>(string query, object[] parameters)

IQueryable<T> SqlQuery<T>(string query, DbTransaction transaction, object[] parameters)

Task<List<T>> SqlQueryAsync<T>(string query, object[] parameters)

Task<List<T>> SqlQueryAsync<T>(string query, DbTransaction transaction, object[] parameters)

void Update<T>(T obj)

void Update<T>(T obj, bool includeParameterOnly, Expression<Func<T, object>>[] lazyProperties)

void UpdateRange<T>(IEnumerable<T> obj)

void UpdateRange<T>(IEnumerable<T> obj, bool includeParameterOnly, Expression<Func<T, object>>[] lazyProperties)