상속: DbForeignKey
예제 #1
0
 public string NameFor(DbManyToOne fk)
 {
     if (fk.Columns.Count == 1)
         return fk.Columns[0].FkColumnRef.Name.ReplaceId().CleanUp();
     else
         return NameFor(fk.PkTableRef);
 }
예제 #2
0
 public string TypeFor(DbManyToOne fk)
 {
     return NameFor(fk.PkTableRef);
 }