This is a migrated thread and some comments may be shown as answers.

Non-persistent classes

1 Answer 38 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alan
Top achievements
Rank 1
Alan asked on 17 Aug 2012, 02:16 PM
Does the ORM support having some classes that are persisted in the DB and some that are not? There is mention about using the [TransientBehavior] attribute on a class declaration but that does not seem to work. Also I would really like to get away from decorating classes with attributes and replacing them with Fluent mapping. Is there something like transient in fluent mapping?

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 22 Aug 2012, 12:53 PM
Hello Alan,

 When using fluent mapping in order to create a transient class it will be enough to just leave it without any mapping specified. This way OpenAccess will not know about its existence and it will not be enhanced. 
Should you have such classes you would be able to always populate them with that using our Ado api implementation. Additional information can be found here.

Greetings,
Petar
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
General Discussions
Asked by
Alan
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or