Generate navigation property IDs in template

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
tarnegur
Posts: 1
Joined: Thu 27 Oct 2016 08:26

Generate navigation property IDs in template

Post by tarnegur » Thu 27 Oct 2016 08:59

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?

Pinturiccio
Devart Team
Posts: 2192
Joined: Wed 02 Nov 2011 09:44

Re: Generate navigation property IDs in template

Post by Pinturiccio » Fri 28 Oct 2016 13:58

Please specify which ORM you are using.

Post Reply