DotaCore.EntityFrameworkCore
15.2.1
dotnet add package DotaCore.EntityFrameworkCore --version 15.2.1
NuGet\Install-Package DotaCore.EntityFrameworkCore -Version 15.2.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DotaCore.EntityFrameworkCore" Version="15.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DotaCore.EntityFrameworkCore --version 15.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DotaCore.EntityFrameworkCore, 15.2.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DotaCore.EntityFrameworkCore as a Cake Addin #addin nuget:?package=DotaCore.EntityFrameworkCore&version=15.2.1 // Install DotaCore.EntityFrameworkCore as a Cake Tool #tool nuget:?package=DotaCore.EntityFrameworkCore&version=15.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DotaCore.EntityFrameworkCore
Extensions
public static class Extensions
{
public static void AddContext<T>(this IServiceCollection services, Action<DbContextOptionsBuilder> options) where T : DbContext { }
public static void AddContextMemory<T>(this IServiceCollection services) where T : DbContext { }
public static void AddUnitOfWork<T>(this IServiceCollection services) where T : DbContext { }
public static DbSet<T> CommandSet<T>(this DbContext context) where T : class { }
public static DbContext DetectChangesLazyLoading(this DbContext context, bool enabled) { }
public static IQueryable<T> QuerySet<T>(this DbContext context) where T : class { }
}
EFCommandRepository
public class EFCommandRepository<T> : ICommandRepository<T> where T : class
{
public EFCommandRepository(DbContext context) { }
public void Add(T item) { }
public Task AddAsync(T item) { }
public void AddRange(IEnumerable<T> items) { }
public Task AddRangeAsync(IEnumerable<T> items) { }
public void Delete(object key) { }
public void Delete(Expression<Func<T, bool>> where) { }
public Task DeleteAsync(object key) { }
public Task DeleteAsync(Expression<Func<T, bool>> where) { }
public void Update(object key, T item) { }
public Task UpdateAsync(object key, T item) { }
public void UpdatePartial(object key, object item) { }
public Task UpdatePartialAsync(object key, object item) { }
public void UpdateRange(IEnumerable<T> items) { }
public Task UpdateRangeAsync(IEnumerable<T> items) { }
}
EFQueryRepository
public class EFQueryRepository<T> : IQueryRepository<T> where T : class
{
public EFQueryRepository(DbContext context) { }
public IQueryable<T> Queryable { get; };
public bool Any() { }
public bool Any(Expression<Func<T, bool>> where) { }
public Task<bool> AnyAsync() { }
public Task<bool> AnyAsync(Expression<Func<T, bool>> where) { }
public long Count() { }
public long Count(Expression<Func<T, bool>> where) { }
public Task<long> CountAsync() { }
public Task<long> CountAsync(Expression<Func<T, bool>> where) { }
public T Get(object key) { }
public Task<T> GetAsync(object key) { }
public IEnumerable<T> List() { }
public async Task<IEnumerable<T>> ListAsync() { }
}
EFRepository
public class EFRepository<T> : Repository<T> where T : class
{
public EFRepository(DbContext context) : base(new EFCommandRepository<T>(context), new EFQueryRepository<T>(context)) { }
}
IUnitOfWork
public interface IUnitOfWork
{
Task<int> SaveChangesAsync();
}
UnitOfWork
public sealed class UnitOfWork<TDbContext> : IUnitOfWork where TDbContext : DbContext
{
public UnitOfWork(TDbContext context) { }
public Task<int> SaveChangesAsync() { }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- DotaCore.Repositories (>= 15.2.1)
- Microsoft.EntityFrameworkCore.InMemory (>= 5.0.4)
- Microsoft.EntityFrameworkCore.Relational (>= 5.0.4)
- Microsoft.Extensions.DependencyInjection (>= 5.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
15.2.1 | 373 | 4/4/2021 |