Mapping interface or abstract class component

前端 未结 4 2052
没有蜡笔的小新
没有蜡笔的小新 2021-02-10 14:24

Please consider the following simple use case:

public class Foo 
{ 
    public virtual int Id { get; protected set; } 
    public virtual IBar Bar { get; set; }          


        
4条回答
  •  一向
    一向 (楼主)
    2021-02-10 14:55

    Here's a similar topic using the union-subclass approach, although the example does not use the fluent interface for the map:

    Click for article...

提交回复
热议问题