Patch Delta Is Null when entity has childrenHow to use Delta<T> from Microsoft ASP.NET Web API OData with Code FirstJsonMediaTypeFormatterMissing inverse property in asp.net webapi odata $metadataOData $expand, DTOs, and Entity FrameworkASP.NET OData - Implementing PATCH with Delta<T> with Data Transfer ObjectsHow to PATCH in Web API and ODatasupport of @odata.bind in asp.net web api (link to existing entity during post).Net Core OData enable filtering for single entity setoData Patch Delta parameter doesn't list any changed fields?Executing a Query in a odata controller results in a “There is already an open DataReader associated with this Command which must be closed first.”Odata Delta patch with Invalid Model State due to complex Entity
What should be the ideal length of sentences in a blog post for ease of reading?
Can I run 125kHz RF circuit on a breadboard?
Should I assume I have passed probation?
Review your own paper in Mathematics
Quoting Keynes in a lecture
How to preserve electronics (computers, iPads and phones) for hundreds of years
"Oh no!" in Latin
Alignment of six matrices
Identifying "long and narrow" polygons in with PostGIS
Given this phrasing in the lease, when should I pay my rent?
Limit max CPU usage SQL SERVER with WSRM
Check if object is null and return null
Can I cause damage to electrical appliances by unplugging them when they are turned on?
El Dorado Word Puzzle II: Videogame Edition
How to understand "he realized a split second too late was also a mistake"
Confusion over Hunter with Crossbow Expert and Giant Killer
Mimic lecturing on blackboard, facing audience
Determining multivariate least squares with constraint
Why would five hundred and five be same as one?
Storage of electrolytic capacitors - how long?
How do I fix the group tension caused by my character stealing and possibly killing without provocation?
Why is the principal energy of an electron lower for excited electrons in a higher energy state?
When and why was runway 07/25 at Kai Tak removed?
How to make money from a browser who sees 5 seconds into the future of any web page?
Patch Delta Is Null when entity has children
How to use Delta<T> from Microsoft ASP.NET Web API OData with Code FirstJsonMediaTypeFormatterMissing inverse property in asp.net webapi odata $metadataOData $expand, DTOs, and Entity FrameworkASP.NET OData - Implementing PATCH with Delta<T> with Data Transfer ObjectsHow to PATCH in Web API and ODatasupport of @odata.bind in asp.net web api (link to existing entity during post).Net Core OData enable filtering for single entity setoData Patch Delta parameter doesn't list any changed fields?Executing a Query in a odata controller results in a “There is already an open DataReader associated with this Command which must be closed first.”Odata Delta patch with Invalid Model State due to complex Entity
I'm using AspNet Core Boilerplate and when trying to update an entity with children with patch in a odata controller I end up with a null delta parameter. Works fine if the entity has no children. Seems to be related to the post below, how can I apply this to AbpODataEntityController.
https://github.com/OData/WebApi/issues/964
My entities look similar to this, so when there are changes to entities in the Items collection is when the issue occurs.
public class Float : FullAuditedEntity<int>, IMustHaveTenant
[InverseProperty("Float")]
public ICollection<FloatItem> Items get; set;
[ForeignKey("OutletId")]
public virtual int OutletId get; set;
public Outlet Outlet get; set;
public class FloatItem : FullAuditedEntity<int>, IMustHaveTenant
[ForeignKey("Float")]
public virtual int FloatId get; set;
public Float Float get; set;
public virtual double CountValue get; set;
odata aspnetboilerplate
add a comment |
I'm using AspNet Core Boilerplate and when trying to update an entity with children with patch in a odata controller I end up with a null delta parameter. Works fine if the entity has no children. Seems to be related to the post below, how can I apply this to AbpODataEntityController.
https://github.com/OData/WebApi/issues/964
My entities look similar to this, so when there are changes to entities in the Items collection is when the issue occurs.
public class Float : FullAuditedEntity<int>, IMustHaveTenant
[InverseProperty("Float")]
public ICollection<FloatItem> Items get; set;
[ForeignKey("OutletId")]
public virtual int OutletId get; set;
public Outlet Outlet get; set;
public class FloatItem : FullAuditedEntity<int>, IMustHaveTenant
[ForeignKey("Float")]
public virtual int FloatId get; set;
public Float Float get; set;
public virtual double CountValue get; set;
odata aspnetboilerplate
add a comment |
I'm using AspNet Core Boilerplate and when trying to update an entity with children with patch in a odata controller I end up with a null delta parameter. Works fine if the entity has no children. Seems to be related to the post below, how can I apply this to AbpODataEntityController.
https://github.com/OData/WebApi/issues/964
My entities look similar to this, so when there are changes to entities in the Items collection is when the issue occurs.
public class Float : FullAuditedEntity<int>, IMustHaveTenant
[InverseProperty("Float")]
public ICollection<FloatItem> Items get; set;
[ForeignKey("OutletId")]
public virtual int OutletId get; set;
public Outlet Outlet get; set;
public class FloatItem : FullAuditedEntity<int>, IMustHaveTenant
[ForeignKey("Float")]
public virtual int FloatId get; set;
public Float Float get; set;
public virtual double CountValue get; set;
odata aspnetboilerplate
I'm using AspNet Core Boilerplate and when trying to update an entity with children with patch in a odata controller I end up with a null delta parameter. Works fine if the entity has no children. Seems to be related to the post below, how can I apply this to AbpODataEntityController.
https://github.com/OData/WebApi/issues/964
My entities look similar to this, so when there are changes to entities in the Items collection is when the issue occurs.
public class Float : FullAuditedEntity<int>, IMustHaveTenant
[InverseProperty("Float")]
public ICollection<FloatItem> Items get; set;
[ForeignKey("OutletId")]
public virtual int OutletId get; set;
public Outlet Outlet get; set;
public class FloatItem : FullAuditedEntity<int>, IMustHaveTenant
[ForeignKey("Float")]
public virtual int FloatId get; set;
public Float Float get; set;
public virtual double CountValue get; set;
odata aspnetboilerplate
odata aspnetboilerplate
edited Mar 7 at 3:21
DLedge
asked Mar 7 at 2:44
DLedgeDLedge
166
166
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035246%2fpatch-delta-is-null-when-entity-has-children%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55035246%2fpatch-delta-is-null-when-entity-has-children%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown