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)

5 results in tag: linqkit

LinqKit and async in Entity Framework

I am getting the following error when using the predicate builder with Entity Framework Core....The source IQueryable doesn't implement IAsyncEnumerable. Only sources that implement IAsyncEnumerable can be used for Entity Framework asynchronous operat...
entity-framework entity-framework-core linqkit predicatebuilder
asked by Bryan

Generic Query With PredicateBuilder in Linqkit

I've been using ...LinqKit... to create generic queries for quite some time....One thing that has always bothered me is the fact that you always have to test whether the value sent in the filter is valid....For example: Suppose I have a string filter. Con...
c# entity-framework entity-framework-core linqkit
asked by Jedi31

Use LinqKit PredicateBuilder for related model (EF Core)

I want to use LinqKit's PredicateBuilder and pass the predicate into ....Any... method for related model....So I want to build a predicate:...var castCondition = PredicateBuilder.New<CastInfo>(true); if (movies != null && movies.Length > 0) { castCon...
.net-core c# entity-framework-core linq linqkit
asked by Igor

Load related data with EF Core 3.1

I'm not sure if I'm doing something wrong or if this is a bug in EF Core 3.1 but the following works with EF 6.x and is part of a Generic Repository which I'm converting to EF Core 3.1:... IQueryable<TEntity> query = this.Context.Set<TEntity>(); if (f...
c# entity-framework entity-framework-core linqkit
asked by Thierry

Conditionally ignore fields with LINQ select

I've been unable to find any examples where you can conditionally exclude fields based off a variable within a select projection in LINQ, see also ...LINQ: Select an object and change some properties without creating a new object.......Let me give some ba...
dynamic-linq entity-framework-core expression-trees linq linqkit
asked by Mark G

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!