从属实体如何处理? #1858
Answered
by
2881099
sangyuxiaowu
asked this question in
Q&A
从属实体如何处理?
#1858
-
类似EF Core这样的处理,如何实现呢? public class Order
{
public int Id { get; set; }
public StreetAddress ShippingAddress { get; set; }
}
[Owned]
public class StreetAddress
{
public string Street { get; set; }
public string City { get; set; }
} |
Beta Was this translation helpful? Give feedback.
Answered by
2881099
Jul 15, 2024
Replies: 1 comment
Answer selected by
sangyuxiaowu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
暂时不支持