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

Entity Framework 6 - Knowledge Base (KB)

3 results in tag: tph

Query to Include Discriminator value when using TPH

When using TPH I have different types inheriting from a base. We have a search that queries across the abstract type. In the results, we want to show the type:...ie. abstract Vehicle...Car: Vehicle Truck: Vehicle...in the results, I want to show 'type' ...
c# discriminator entity-framework entity-framework-6 tph
asked by Steve

Sequence contains more than one matching element when adding a migration

The following code in my DbContext class causes an error when I try to add a migration...protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Entity<TaskExt>() .Map<TaskDespatch>(m => { m.Requires("Wo...
ef-migrations entity-framework-6 tph
asked by Kirsten Greed

EF6 Use Existing Db Column as Discriminator

I am using Entity Framework 6 Code First for my project. Entities have Inheritance so I am following TPH(Table per Hierarchy). I read following ...Article... and many others....None of them explain a way in which I can use an existing DB Column mapped to ...
entity-framework entity-framework-6 tph
asked by Alok

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
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!