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


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

            return(summary);
        }
Beispiel #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());
     }
 }