zzz projects Entity Framework Graph Diff EF Graph Diff
Documentation Knowledge Base GitHub  Help & Donate
Online Examples
  • Documentation
  • Knowledge Base
  • GitHub
  • Help & Donate
  • Online Examples
  •   Download  

Entity Framework Graph Diff - Knowledge Base (KB)

9 results in tag: ef-code-first

Update entity graph Ids with Db generated Ids in Disconnected environment(EF)

I'm working with ...EF6 code first... in a ...WinForm... project. I used following method for reading entities from ...Db..., updating them and then save back them to ...Db...:...Read Entity graph using ...Linq to entities...(after reading the ...DbContex...
c# ef-code-first entity-framework graphdiff repository
asked by Masoud

Updating a many-to-many relation using GraphDiff cause an error

I'm using ...EF code first 6.1... with ....NET 4... in my application and have following classes in my model(I cut other unrelated parts of diagram. e.g ...Permission... has other navigations): ...My business logic works with detached entities so I'm usin...
c# ef-code-first entity-framework graphdiff many-to-many
asked by Masoud

Setting association to foreign key to inherited object using graphdiff and Entity Framework

I have a issue with updating value on a foreign key which is inheriting from another class. I am working with detached object in Entity Framework, so I'm using graphdiff to handle it....I've simplified the code to make it easier to read...Project class:..
c# ef-code-first entity-framework graphdiff
asked by Arne H. Bitubekk

Empty rows insertion in Many-to-One and Many-to-Many relationships in GraphDiff

I am using GraphDiff, along with the latest version of the Entity Framework, following the code-first approach....I am trying to update a ...Food... entity this way:...public void Update(Food food) { using (var db = new DatabaseMappingContext()) {...
c# ef-code-first entity-framework graphdiff
asked by Nick Louloudakis

How to update related entities using GraphDiff?

I have the following model:...public class Customer { public int Id {get; set;} public string Name {get; set;} public int AddressId {get; set;} public virtual Address Address {get; set;} public virtual ICollection<CustomerCategory> Cat...
c# ef-code-first entity-framework graphdiff
asked by Ivan-Mark Debono

Conditional mapping with graphdiff

I have following entities in my ...DbContext...:...public class A { public A() { Bs = new List<B>(); } public ICollection<B> Bs { set; get; } } ...Sometimes I Want to update ...a... graph:...var a = dbContext.As .AsNoTrackin...
c# ef-code-first entity-framework graphdiff
asked by Masoud

The relationship could not be changed because one or more of the foreign-key properties is non nullable

I get following error during update with EF:...The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to a relationship, the related foreign-key property is set ...
c# ef-code-first entity-framework graphdiff
asked by Masoud

When to disable proxy generation and use AsNoTracking?

In my WebApi project, I use EF6, follow Uow and generic repository patterns, and I also map my models to dto's and vice-versa. ...Currently I set the following when creating the ...dbContext...:...this.Configuration.LazyLoadingEnabled = false; this.Config...
asp.net-web-api c# ef-code-first entity-framework graphdiff
asked by Ivan-Mark Debono

Delete Owned Entities 2 level depth using GraphDiff

I am using Entity Framework code first (version 6) and GraphDiff in my MVC project....here is some entities which map some tables in database....public class CommunicationPlan { public int CommunicationPlanID { get; private set; } [Owned] pu...
c# ef-code-first entity-framework graphdiff
asked by Hakan Fıstık

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!