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)

31 results

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

How to ignore property using graphdiff?

I'm using EF6 with graphdiff and EDMX and must ignore a property of a particular entity....How should I do since even getting the property the insert or update always leave the NULL field?
edmx graphdiff ignore properties
asked by user3707330

Using Moq with EntityFramework graphdiff

I have just added GraphDiff in an existing Entity Framework solution which is utilizing Moq framework for testing. All my tests that are using Moq in insert and update methods are now failing since method ..._context.UpdateGraph... throws following except...
entity-framework graphdiff moq
asked by vipasane

Resolving class that has extension methods with AutoFac

I am using a third party library ...GraphDiff... which adds Extension methods to DBContext class. My Context class is inherited from Interface like following ... MyContext: DbContext,IMyContext ...IoC contained register MyContext as IMyContext. Interface...
autofac entity-framework graphdiff
asked by InTheWorldOfCodingApplications

GraphDiff causing id of entity to not get populated after saveChanges()

When using graphDiff for creating a record the new id isn't getting populated back into the entity after saveChanges() is called. Its been logged on the github repo here - ...https://github.com/refactorthis/GraphDiff/issues/144... but the repo doesn't see...
entity-framework graphdiff
asked by Michael Esteves

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

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

I use ...GraphDiff... to update detached object graphs, and I'm getting the above exception when saving a parent and its children....The models and mapping are:...public class Group { public int Id { get; set; } public virtual ICollection<GroupUse...
c# entity-framework entity-framework-6 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

How to update self-reference graph using GraphDiff?

I am using ...GraphDiff... to update entity framework graphs and when I am trying to update self-referenced graph like this way:... dbContext.UpdateGraph(updatedStorageRequest, storageRequestMap => storageRequestMap .OwnedCollection(oc...
c# entity-framework graphdiff
asked by Simple Code

Page 2 of 2
  • «
  • 1
  • 2

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!