Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for using another column from the same table in Value Conversions #13067

Closed
dhtek opened this issue Aug 21, 2018 · 1 comment
Closed

Comments

@dhtek
Copy link

dhtek commented Aug 21, 2018

Does it possible to use another column from the same table when defining the converter ?
I try to find on the web, but didn't find any answer.

Steps to reproduce

builder.OwnsOne(x => x.Type).Property(x => x.Code).HasColumnName("TypeCode");
builder.Property(x => x.Detail).HasConversion(
x => XmlSerializer.SerializeDetail(x),
x => XmlSerializer.DeserializeDetail<IDetail>("Should be the value from the column TypeCode", x));

Further technical details

EF Core version: 2.1.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
IDE: Visual Studio 2017 15.7.3

@ajcvickers
Copy link
Member

@dhtek This is currently not possible, but is being tracked as part of #9906

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants