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)

27 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

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

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

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

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

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

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