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 459 posts 1604 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 459 posts 1604 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 6419 posts 15026 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

Please Sign in or register to post replies

Write your reply to:

Draft