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 1648 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 1648 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")]
    
  • Comment author was deleted

    Dec 08, 2018 @ 13:39

    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