Наследование: DbForeignKey
Пример #1
0
 public string NameFor(DbOneToMany fk)
 {
     var name = NameFor(fk.FkTableRef) + "List";
     if (!fk.SafeNaming)
         name += "At" + fk.Columns[0].Name.ReplaceId().CleanUp();
     return name;
 }
Пример #2
0
 public string TypeFor(DbOneToMany fk)
 {
     return "ICollection<" + NameFor(fk.FkTableRef) + ">";
 }
Пример #3
0
 public string ConcreteTypeFor(DbOneToMany fk)
 {
     return "HashSet<" + NameFor(fk.FkTableRef) + ">";
 }