zzz projects Entity Framework Core EF Core
Home Articles Knowledge Base Online Examples
  • Home
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework Core - Knowledge Base (KB)

2 results in tag: recursion

LINQ query to get recursive category structure and products of each category

How can I re-write my query to include all the products of each category in a recursive product category tree? This query gets the categories and their children, so I'm just missing the products:...var categories = _context.ProductCategories ...
c# entity-framework-core linq recursion
asked by Stian

How can I load all child records recursively?

I have this Project class:...public class Project { public int Id { get; set; } public int? ParentId { get; set; } public List<Project> ChildProjects { get; set; } // more properties } ...This is my attempt to load all descendants of any g...
c# entity-framework-core recursion yield-return
asked by Stian

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!