幽梦紫曦

XPO特性MapInheritance

电脑版发表于:2020/12/2 11:18
子BO不创建表,创建的表是父BO
public class Person : XPObject 
{    
   public string Name 
   {        
      get { return fName; }        
      set { SetPropertyValue(nameof(Name), ref fName, value); }
   }    
   string fName = "";
}

[MapInheritance(MapInheritanceType.ParentTable)]
class Customer : Person 
{    
   public string Preferences 
   {        
      get { return fPreferences; }        
      set { SetPropertyValue(nameof(Preferences), ref fPreferences, value); }
  }    
  string fPreferences = "";
}


关于TNBLOG
TNBLOG,技术分享。技术交流:群号677373950
ICP备案 :渝ICP备18016597号-1
App store Android
精彩评论
{{item.replyName}}
{{item.content}}
{{item.time}}
{{subpj.replyName}}
@{{subpj.beReplyName}}{{subpj.content}}
{{subpj.time}}
猜你喜欢