public static string GetDisplayText(InheritanceType inheritanceType) { switch (inheritanceType) { case InheritanceType.None: return("No inheritance"); case InheritanceType.TablePerClassHierarchy: return("Table Per Class Hierarchy"); case InheritanceType.TablePerConcreteClass: return("Table Per Concrete Class"); case InheritanceType.TablePerSubClass: return("Table Per Sub-Class"); case InheritanceType.Unsupported: return("Unsupported"); default: throw new NotImplementedException("InheritanceType not handled yet: " + inheritanceType.ToString()); } }
} = new List <Phenotype>(); //People whom have the trait public override string ToString() { string summary = TraitName + " " + InheritanceType.ToString(); return(summary); }
public static string GetDisplayText(InheritanceType inheritanceType) { switch (inheritanceType) { case InheritanceType.None: return "No inheritance"; case InheritanceType.TablePerClassHierarchy: return "Table Per Class Hierarchy"; case InheritanceType.TablePerConcreteClass: return "Table Per Concrete Class"; case InheritanceType.TablePerSubClass: return "Table Per Sub-Class"; case InheritanceType.Unsupported: return "Unsupported"; default: throw new NotImplementedException("InheritanceType not handled yet: " + inheritanceType.ToString()); } }