Is there a way to share the same connection id with different rlinq file?

4 posts, 0 answers
  1. john
    john avatar
    67 posts
    Member since:
    Jan 2012

    Posted 17 Sep 2012 Link to this post

    Is there a way to share the same connection id with different rlinq file?
  2. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 20 Sep 2012 Link to this post

    Hi Jin,

     Yes, it is possible. In order to have this comfort, you need to extend the metadata of the context class from the .rlinq file you have used first. Please have a look into this help article to get the idea of how to extend the metadata for a context.

    Regards,
    Zoran
    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!
  3. DevCraft banner
  4. john
    john avatar
    67 posts
    Member since:
    Jan 2012

    Posted 20 Sep 2012 Link to this post

    Whether you recommend to put all tables in one rlinq file?
  5. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 25 Sep 2012 Link to this post

    Hello Jin,

     It is always recommended to use one .rlinq file for all entities if possible. That does save some headaches or additional work to have the model working during runtime. If however, having the model in one .rlinq file is making the file hard to maintain, or the model has more than one logical units, separating it in more than one file is also possible.

    Regards,
    Zoran
    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