Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Dec 07, 2018 @ 12:14
    Ali Sheikh Taheri
    0

    How to change the connection string

    I have two databases:

    • umbracoDbDSN
    • nonCmsDbDSN

    I am wondering how could I tell UI-O-Matic to use the nonCmsDbDSN and look for my table in that database rather than umbracoDbDSN?

    Is this possible?

    Many Thanks

    Ali

  • Ali Sheikh Taheri 470 posts 1647 karma points c-trib
    Dec 07, 2018 @ 15:52
    Ali Sheikh Taheri
    100

    Found the solution from the source code (thanks for making this great project open source)

    You can simply specify the Connection String Name as one of the parameters in UIOMatic attribute. example:

    [UIOMatic("people","People", ConnectionStringName="SecondDB")]
    
  • Tim Geyssens 6562 posts 15373 karma points MVP 2x c-trib
    Dec 08, 2018 @ 13:39
    Tim Geyssens
    1

    Great, glad you found the answer, it's also specified in the docs :) https://uiomatic.readthedocs.io/en/stable/01.Usage/

    Cheers, Tim

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies