Page 1 of 1

Non-DB Property

Posted: Tue 17 Dec 2013 07:59
by Ekki
Hi,

I want to define an attribute that will be set at run-time only and never ever be stored in the DB. Moreover I don't even want to create a table column for that one. Is there a way to implement this with the ED? I don't want to add this to the created code as it will be overridden with the next export.

Thx a lot and sorry if this is already answered somewhere

BR,

Ekki

Re: Non-DB Property

Posted: Tue 17 Dec 2013 08:44
by Shalex
Please create a partial class with your additional property in a separate *.cs file.

Be aware that you can generate partial classes for each class in the model automatically: for this, set the File Per Class and Generate Partial Class properties of your template to True.

Re: Non-DB Property

Posted: Tue 17 Dec 2013 09:50
by Ekki
really would like to do so but just face the issue that my ED doesn't want to load the model (an lqml file) any more… Just offering edml/mx… No idea what's going on...

Re: Non-DB Property

Posted: Wed 18 Dec 2013 10:55
by MariiaI
Ekki wrote:really would like to do so but just face the issue that my ED doesn't want to load the model (an lqml file) any more… Just offering edml/mx… No idea what's going on...

We have contacted you by e-mail.