Skip to content

λ IQueryable automatic projection device, easily convert IQueryable<Entity> to IQueryable<Dto>

License

Notifications You must be signed in to change notification settings

umutozel/QueryableProjector

Repository files navigation

QueryableProjector

IQueryable automatic prjection device, easily convert IQueryable<Entity> to IQueryable<Dto>.

Detects Includes and extends only included navigation properties.

Usage;

using (var context = new TestEntities()) {
    // Entity Query
    var query = context.Orders.Include(o => o.Customer).Include(o => o.OrderDetails.Select(od => od.Supplier));
    // Easily convert to Dto Query
    var dtoQuery = query.ProjectTo<OrderDto>();
    // profit?
}

Nuget

About

λ IQueryable automatic projection device, easily convert IQueryable<Entity> to IQueryable<Dto>

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages