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)

4 results in tag: linq-expressions

System.Core error: "Code supposed to be unreachable" using C# Entity Framework and Linq with Expression

I'm getting a "Code supposed to be unreachable" error when executing the following Linq to Sql statement. I'm using EF 6.1.3. I think this is a known bug related to filtering a navigation property. It seems like it might be fixed in EF7 but I don't see an...
c# entity-framework entity-framework-6 linq-expressions linq-to-entities
asked by SteveB

How to use expressions to build a LINQ query dynamically when using an interface to get the column name?

I'm using Entity Framework Core to store and retrieve some data. I'm trying to write a general-purpose method that will work on any ...DbSet<T>... in order to avoid code duplication. This method runs a LINQ query against the set, for which it needs to kno...
c# entity-framework-core linq linq-expressions
asked by Steven Rands

DbSet.Find() doesn't work for Guid properties

I have two models ...public class QChoice : ModelWithGuid { [Required] public Guid? QId { get; set; } } public class ModelWithGuid { [Key] public Guid Id { get; set; } = Guid.NewGuid(); } ...I'm performing FInd opertion on CHOICE Dbset...
.net asp.net-core c# entity-framework-core linq-expressions
asked by Akhil Bajjuri

assign null value to ifFalse parameter of Expression.Condition throws type mismatch exception

I want to create a static method that can be used with automapper to map a string value (retrieved from MS SQL database) to an enum and get the description of that enum which is stored in an annotation (using Entity Framework core). I get the code to work...
automapper c# entity-framework-core linq-expressions
asked by StefanE

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!