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 in tag: graphdiff

Exception in Expression Trees

This is my model:... - Business - BusinesType - FK - Categories (*) - FK - Branch (*) - BranchType - FK - Address - Phone (*) - CustomFields (*) - OpeningTimes (*) - WorkingPeriods (*) - ..... ...Now I have a co...
entity-framework graphdiff
asked by Shimmy

Disconnected Complex Graph With Disconnected Child Entities

I have a complex graph with a collection child entities.The relationship between parent and child entities is one-many relationship and has an Independent association. I know that I cant persist my graph without manual synchronization which I want to avoi...
entity-framework-6 graphdiff
asked by Mady

How to update an expression tree with GraphDiff

The object graph I'm working with is basically:...public class Resource { public string Forename { get; set; } public string Surname { get; set; } public int EmployeeNumber { get; set; } public ICollection<Skill> Skills...
c# entity-framework graphdiff
asked by DaveF

Update Many-to-Many Association with GraphDiff

I have the following data model:...My business logic works with detached entities so I'm using GraphDiff to perform updates. I'm having trouble updating the PerfModes/CalcPoints association. Conceptually, Block owns CalcPoints and PerfModes, but CalcPoint...
c# entity-framework-6 graphdiff
asked by Matt

Casting an expression to another one

I have following expression...Expression<Func<T, object>> expr1;...Is there any way to cast it to ...Expression<Func<IUpdateConfiguration<T>, object>>...?...[Update]...Or create a new ...Expression<Func<IUpdateConfiguration<T>, object>>... from the existi...
c# casting expression generics graphdiff
asked by Masoud

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

How do you perform service-oriented parent-child transactions?

Example:...A SalesOrder is composed of a SalesOrderHeader and one or more SalesOrderItems. When editing an existing SalesOrder, the SalesOrderHeader can be modified and SalesOrderItems can be added, modified and deleted. All changes must be saved in a sin...
asp.net-web-api breeze entity-framework graphdiff web-services
asked by BahKoo

GraphDiff and EF6.1 – Recursive Many-to-Many Relationship

I am having an issue with GraphDiff attaching an object which has a recursive many-to-many relationship. I am using GraphDiff 2.0.1 and Entity Framework 6.1.1....The progam manages Recipes which can have 0-n RecipeLines which contains a link to another Re...
entity-framework graphdiff recursion
asked by Croberts

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

How do I combine two expression tree bodies?

If I have:...m => m.OwnedCollection(p => p.Addresses) ...and...m => m.OwnedCollection(p => p.Contacts) ...I'd like to combine them to be:...m => m.OwnedCollection(p => p.Addresses).OwnedCollection(p => p.Contacts) ...Is there a way of doing this?...I'd al...
c# expression graphdiff lambda linq
asked by user2363071

Graphdiff is removing entities

I have the following entities: ...public class Profile { [Required] public string Name { get; set; } [Required] public string Description { get; set; } [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ID { g...
entity-framework graphdiff
asked by Cesar

Using GraphDiff on three tables

I have three tables...ShippingZone ShippingZoneID -> PK ZoneShippingMethod: ZoneShippingMethodID -> PK ShippingZoneID -> FK ZoneShippingMethodRange ZoneShippingMethodID -> FK ...The context:...public ShippingZonesContext() : ...
entity-framework graphdiff
asked by Codehelp

UpdateGraph with self referencing entity

I'm using ...GraphDiff... with EF to update state of disconnected objects acquired from a REST Service....It's working rather well from now but I got a problem with self referencing entities....Entities :...public class Foo { [Key] public int Id {...
entity-framework graphdiff self-referencing-table
asked by Florian F.

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

Updating data in two related tables using GraphDiff

I have two tables, Order and OrderItems...The Order table has a OrderId column that's the primary key The OrderItems also has this column as foriegn key....For a given Order, if the OrderId is 1 and it has two items the OrderItems table will have two rows...
c# entity-framework graphdiff
asked by Codehelp

Optimize GraphDiff performance on first update (subsequent updates are quick)

I am working on a project with a very complex entity. The object graph contains approximately 30 objects in a tree with two levels (there are children of children)....The entity is managed in a browser, and sent as Json to a Web API endpoint. The endpoint...
entity-framework-6.1 graphdiff
asked by Tibor Molnar

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

Inserting entity doesn't update Key field

I'm trying to insert a detached entity into database using GraphDiff....It goes something like :...public IHttpActionResult Post([FromBody] Foo foo) { var newFoo = fooBusiness.AddObject(foo); if (newFoo != null) { return CreatedAtRoute("Ge...
c# entity-framework graphdiff
asked by Florian F.

Can GraphDiff be used for partial updates of simple entities too?

I have a WebApi2 project with EF6 CodeFirst. I'm also using AutoMapper to map between my models and dto's. I'm not using OData. ...I'm trying to find a solution to handle updates of entities. As I'm not using OData I can't use Delta and I would not like t...
asp.net-web-api2 c# entity-framework graphdiff
asked by Ivan-Mark Debono

Should foreign Id properties be mapped from Model to Dto?

If I have the following model:...public class Customer { public int Id {get; set;} public int CustomerTypeId {get; set;} public virtual CustomerType {get; set;} } ...Should the Dto exclude foreign Id's to look like this:...public class Custome...
automapper c# entity-framework graphdiff
asked by Ivan-Mark Debono

Page 1 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!