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: system.reflection

Include all navigation properties using Reflection in generic repository using EF Core

I'm working on creating a generic repository for an EF Core project to avoid having to write CRUD for all models. A major roadblock I've hit is navigation properties not being loaded since Core doesn't yet support lazy loading and the generic class obviou...
c# entity-framework-core system.reflection
asked by Valuator

Load EF Core 2 DbContext from dynamically imported DLL

I have a DbContext I need to dynamically loading from a DLL as the Db context will change and need to be edited while the application is running, however I can't seem to create an instance of this context as I appear to need to pass in the context options...
asp.net-core-2.0 c# ef-core-2.0 entity-framework-core system.reflection
asked by James Morrison

Dynamically get a DbSet<T> by Entity class name

I'm trying to use ...System.Reflections... to get a ...DbSet<T>... dynamically from its name....What I've got right now is:...The ...DbSet... name...The ...DbSet...'s ...Type... stored on a variable...The issue I'm facing comes out when trying to use the ...
asp.net-core c# entity-framework-core system.reflection
asked by Santa Cloud

Check if a property of an Entity is marked as IsRequired() via reflections and EF Core

THE QUESTION...If I have an array of properties of a certain Entity and I'm iterating through them, ...is there any way to check if the reflected type property that I am iterating in each cycle is configured as ....IsRequired()... on its corresponding Ent...
c# entity-framework-core system.reflection
asked by Deadpool

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!