简体   繁体   English

如何使用MyCouch和C#连接到Smileupps Couchdb?

[英]How to connect to Smileupps Couchdb with MyCouch and C#?

I may be wrong by the way I'm going about this, but I'm trying to connect to an online database that I'm hosting on Smileupps. 我的处理方式可能不对,但是我试图连接到我在Smileupps上托管的在线数据库。 I'm using CouchDB, and in my program I'm using MyCouch to try to communicate with the DB. 我正在使用CouchDB,在我的程序中,我正在使用MyCouch尝试与数据库进行通信。 Am I mistaken in doing this? 我做错了吗? How do I write a query to check if it works? 如何编写查询以检查其是否有效?

 public void Connection()
    {
        using (var client = new MyCouchClient("https://couchdb-68effd.smileupps.com/_utils/", "dks-calc"))
        {
            // querys go here I assume
        }

    }

I'm not sure if I should be connecting on the MainPage.xaml.cs or the Client.cs that was generated with MyCouch. 我不确定是否应该连接MyCouch生成的MainPage.xaml.cs或Client.cs。

enter image description here 在此处输入图片说明

When you connect to CouchDB, don`t use the GUI link. 当您连接到CouchDB时,请不要使用GUI链接。 Test something like this : 测试这样的事情:

new MyCouchClient("https://couchdb-68effd.smileupps.com/", "dks-calc")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM