コード例 #1
0
        public string Add(IOrientObject obj_)
        {
            string            content   = jm.SerializeObject(obj_);
            List <ITypeToken> commandTk = tb.Command(new OrientCreateToken(), obj_, obj_, new TextToken()
            {
                Text = content
            });
            string command = txb.Build(commandTk, new OrientCreateVertexCluaseFormat());

            queryUrl = CommandUrl + "/" + command;

            owm.Authenticate(AuthUrl,
                             new NetworkCredential(ConfigurationManager.AppSettings["ParentLogin"], ConfigurationManager.AppSettings["ParentPassword"]));

            string resp =
                ir.ReadResponse(
                    owm.GetResponse(queryUrl, new POST().Text)
                    );

            return(resp);
        }