Hi, I have a model which has 3 properties of a class that inherits structure. Example:

user > address1:structure
     > address2:structure

when i filter by criteria which returns only address2 an set some of its values the ORM generates a query that updates address1:

.Where(u => u.adress2.value == "some value")
.Set(u.adress2.value, "other value").

this creates the following sql:

UPDATE [dbo].[User] SET [Address1.Value] = @p1_0 WHERE ([Address2].[Value] = @p1_1);

asked Nov 28 '16 at 11:12

Martin's gravatar image


edited Nov 28 '16 at 11:12

One Answer:

Hello Martin

The problem is confirmed. Thank you for the bug report. Unfortunately, now I can't tell in which version it will be fixed.

answered Dec 05 '16 at 03:38

Alexey%20Kulakov's gravatar image

Alexey Kulakov

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA