© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
18 replies
.tree

❔ Access a DB property from a not mapped property

I have 2 models, A and B.

A includes a property X that I want to store in property Y in B.

Property X is stored in a DB, property Y is not mapped.

How can I achieve this? Simply doing
get => A.X
get => A.X
does not seem to work in property Y
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Access dependency property from a viewmodel WPF
C#CC# / help
2y ago
Not mapping an EF Core DB-First enum property
C#CC# / help
3y ago
❔ Get property from type
C#CC# / help
3y ago