Closed maftieu closed 1 year ago
With a one-to-one relationship, updating the "dependant" entry with a criteria on the "parent" entity results in a WHERE clause like this one
FROM [dbo].[ChildEntity] AS [Extent1] INNER JOIN [dbo].[ParentEntity] AS [Extent2] ON [Extent2].[Id] = [Extent1].[Id]
The SqlBuilder.GetTableAlias() function returns something like [Extent2] ON [Extent2].[Id] = [Extent1].[Id], which is wrong.
SqlBuilder.GetTableAlias()
[Extent2] ON [Extent2].[Id] = [Extent1].[Id]
I reviewed the code and it looks good.
With a one-to-one relationship, updating the "dependant" entry with a criteria on the "parent" entity results in a WHERE clause like this one
The
SqlBuilder.GetTableAlias()
function returns something like[Extent2] ON [Extent2].[Id] = [Extent1].[Id]
, which is wrong.