public string NameFor(DbOneToMany fk) { var name = NameFor(fk.FkTableRef) + "List"; if (!fk.SafeNaming) name += "At" + fk.Columns[0].Name.ReplaceId().CleanUp(); return name; }
public string TypeFor(DbOneToMany fk) { return "ICollection<" + NameFor(fk.FkTableRef) + ">"; }
public string ConcreteTypeFor(DbOneToMany fk) { return "HashSet<" + NameFor(fk.FkTableRef) + ">"; }