Exemple #1
0
        public async Task <RelationId> AddRelationAsync(string childSchemaId, string parentSchemaId)
        {
            var schemaRelation = new AddSchemaRelation()
            {
                ChildSchemaId  = childSchemaId,
                ParentSchemaId = parentSchemaId
            };
            var response = await _client.AddRelationAsync(schemaRelation);

            return(Task.FromResult(response).Result);
        }
Exemple #2
0
        public Task <RelationId> AddRelation(string childSchemaId, string parentSchemaId)
        {
            var schemaRelation = new AddSchemaRelation()
            {
                ParentSchemaId = parentSchemaId,
                ChildSchemaId  = childSchemaId,
            };
            var response = _client.AddRelation(schemaRelation);

            return(Task.FromResult(response));
        }