Skip to content

About

Library with repository pattern and helpers around Entity Framework and Entity Framework Core

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

114 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeCube.DataAccess

Library with repository pattern and helpers around Entity Framework Core (SQL Server and PostgreSQL).

Nuget Nuget (with prereleases) GitHub

Set query filter on all entities.

    modelBuilder.SetQueryFilterOnAllEntities<ISoftDelete>(e => !e.IsDeleted);
    var entitiesWithSoftdelete = modelBuilder.Model.GetEntityTypes().Where(t => typeof(ISoftDelete).IsAssignableFrom(t.ClrType));
    foreach (var entityType in entitiesWithSoftdelete)
    {
        modelBuilder.SetSoftDeleteFilter(entityType.ClrType);
    }

About

Library with repository pattern and helpers around Entity Framework and Entity Framework Core

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages