예제 #1
0
        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());
            }
        }
예제 #2
0
        } = new List <Phenotype>();                                                               //People whom have the trait


        public override string ToString()
        {
            string summary = TraitName + " " + InheritanceType.ToString();

            return(summary);
        }
예제 #3
0
 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());
     }
 }