Page 1 of 1

Generate navigation property IDs in template

Posted: Thu 27 Oct 2016 08:59
by tarnegur
Hi.

We have a template, wich generates the classes from DB. All the single multiplicity navigation properties are generated as

Code: Select all

public NavigationPropertyType NavigationPropertyName { get; set; }
but we also need the properties for the foreign keys too. It should be like this

Code: Select all

public NavigationPropertyType NavigationPropertyName { get; set; }
public ForeignKeyType ForeignKeyId { get; set; }
How can we do this?

Re: Generate navigation property IDs in template

Posted: Fri 28 Oct 2016 13:58
by Pinturiccio
Please specify which ORM you are using.