Non-persistent classes

Thread is closed for posting
2 posts, 0 answers
  1. Alan
    Alan avatar
    6 posts
    Member since:
    Apr 2012

    Posted 17 Aug 2012 Link to this post

    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?
  2. PetarP
    PetarP avatar
    754 posts

    Posted 22 Aug 2012 Link to this post

    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.

    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!
Back to Top