Inheritance: DbForeignKey
Example #1
0
 public string NameFor(DbOneToMany fk)
 {
     var name = NameFor(fk.FkTableRef).ToPlural(Pluralizer);
     if (!fk.SafeNaming)
         name += "At" + fk.Columns[0].Name.ReplaceId().CleanUp();
     return name;
 }
Example #2
0
 public string TypeFor(DbOneToMany fk)
 {
     return "ISet<" + NameFor(fk.FkTableRef) + ">";
 }
Example #3
0
 public string ConcreteTypeFor(DbOneToMany fk)
 {
     return "HashedSet<" + NameFor(fk.FkTableRef) + ">";
 }
Example #4
0
 public string TypeFor(DbOneToMany fk)
 {
     return "ICollection<" + NameFor(fk.FkTableRef) + ">";
 }