Entityframework.docs: Support sub query in computed column mapping?

Created on 1 Aug 2018  Â·  1Comment  Â·  Source: dotnet/EntityFramework.Docs

Can we map as this when we have sub query?
.HasComputedColumnSql("select top 1 address.[zipcode] + ', ' + address.[details] from address where [addressId]=address.id");
}


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

closed-question

Most helpful comment

@zxs731 The text passed to HasComputedColumnSql is opaque to EF, so if that works on SQL Server (or whatever database engine you are using) then it should work with EF.

>All comments

@zxs731 The text passed to HasComputedColumnSql is opaque to EF, so if that works on SQL Server (or whatever database engine you are using) then it should work with EF.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Praveen-Rai picture Praveen-Rai  Â·  4Comments

SychevIgor picture SychevIgor  Â·  4Comments

jpeckham picture jpeckham  Â·  3Comments

speciesunknown picture speciesunknown  Â·  3Comments

weitzhandler picture weitzhandler  Â·  4Comments