2016-02-08 62 views

回答

0

不使用IAutomappingOverride但AutomappingConfiguration

class MyAutomappingConfiguration : DefaultAutomappingConfiguration 
{ 
    public override bool IsDiscriminated(Type type) 
    { 
     return false; // or whatever classes it should discriminate instead of table per type 
    } 
} 
相關問題