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); }
public string ConcreteTypeFor(DbOneToMany fk) { return("HashSet<" + NameFor(fk.FkTableRef) + ">"); }
public string TypeFor(DbOneToMany fk) { return("ICollection<" + NameFor(fk.FkTableRef) + ">"); }