Esempio n. 1
0
        private static Identifier ChangesetSave(string modelName, string versionName, string entityName, Identifier changesetId,
                                                ChangesetStatus status)
        {
            var saveRequest = new EntityMemberChangesetSaveRequest
            {
                ModelId = new Identifier {
                    Name = modelName
                },
                VersionId = new Identifier {
                    Name = versionName
                },
                Changeset = new Changeset
                {
                    Identifier = changesetId,
                    EntityId   = new Identifier {
                        Name = entityName
                    },
                    Status = status
                }
            };

            EntityMemberChangesetSaveResponse saveResponse = clientProxy.EntityMemberChangesetSave(saveRequest);

            HandleOperationErrors(saveResponse.OperationResult);
            return(saveResponse.CreatedChangeset);
        }
Esempio n. 2
0
        public EntityMemberChangesetSaveResponse ChangesetSave(string modelName, string versionName, string entityName, Identifier changesetId,
                                                               ChangesetStatus status)
        {
            var saveRequest = new EntityMemberChangesetSaveRequest
            {
                ModelId = new Identifier {
                    Name = modelName
                },
                VersionId = new Identifier {
                    Name = versionName
                },
                Changeset = new Changeset
                {
                    Identifier = changesetId,
                    EntityId   = new Identifier {
                        Name = entityName
                    },
                    Status = status
                }
            };

            EntityMemberChangesetSaveResponse saveResponse = _clientProxy.EntityMemberChangesetSave(saveRequest);

            return(saveResponse);
        }
Esempio n. 3
0
        private static void ChangesetsGet(string modelName, string versionName, string entityName, ChangesetStatus status = ChangesetStatus.NotSpecified)
        {
            var getRequest = new EntityMemberChangesetsGetRequest
            {
                ModelId = new Identifier { Name = modelName },
                VersionId = new Identifier { Name = versionName },
                EntityId = new Identifier { Name = entityName },
                Status = status
            };

            EntityMemberChangesetsGetResponse getResponse = clientProxy.EntityMemberChangesetsGet(getRequest);
            HandleOperationErrors(getResponse.OperationResult);
        }
Esempio n. 4
0
        private static Identifier ChangesetSave(string modelName, string versionName, string entityName, Identifier changesetId,
            ChangesetStatus status)
        {
            var saveRequest = new EntityMemberChangesetSaveRequest
            {
                ModelId = new Identifier {Name = modelName},
                VersionId = new Identifier {Name = versionName},
                Changeset = new Changeset
                {
                    Identifier = changesetId,
                    EntityId = new Identifier {Name = entityName},
                    Status = status
                }
            };

            EntityMemberChangesetSaveResponse saveResponse = clientProxy.EntityMemberChangesetSave(saveRequest);
            HandleOperationErrors(saveResponse.OperationResult);
            return saveResponse.CreatedChangeset;
        }
Esempio n. 5
0
        private static void ChangesetsGet(string modelName, string versionName, string entityName, ChangesetStatus status = ChangesetStatus.NotSpecified)
        {
            var getRequest = new EntityMemberChangesetsGetRequest
            {
                ModelId = new Identifier {
                    Name = modelName
                },
                VersionId = new Identifier {
                    Name = versionName
                },
                EntityId = new Identifier {
                    Name = entityName
                },
                Status = status
            };

            EntityMemberChangesetsGetResponse getResponse = clientProxy.EntityMemberChangesetsGet(getRequest);

            HandleOperationErrors(getResponse.OperationResult);
        }
Esempio n. 6
0
        public EntityMemberChangesetsGetResponse ChangesetsGet(string modelName, string versionName, string entityName, ChangesetStatus status = ChangesetStatus.NotSpecified)
        {
            var getRequest = new EntityMemberChangesetsGetRequest
            {
                ModelId = new Identifier {
                    Name = modelName
                },
                VersionId = new Identifier {
                    Name = versionName
                },
                EntityId = new Identifier {
                    Name = entityName
                },
                Status = status
            };

            EntityMemberChangesetsGetResponse getResponse = _clientProxy.EntityMemberChangesetsGet(getRequest);

            return(getResponse);
        }