Пример #1
0
        public DeleteDocumentsOperation(Alachisoft.NosDB.Common.Protobuf.Command command) : base(command.ToBuilder())
        {
            _deleteCommand = command.DeleteDocumentsCommand.ToBuilder();
            _documentIds   = new List <IJSONDocument>();

            foreach (string document in _deleteCommand.DocumentIdsList)
            {
                _documentIds.Add(JSONDocument.Parse(document));
            }

            base.Message = this;
        }
Пример #2
0
        public CreateCollectionOperation(Alachisoft.NosDB.Common.Protobuf.Command command) : base(command.ToBuilder())
        {
            _createCollectionCommand = command.CreateCollectionCommand.ToBuilder();

            // _collectionConfiguration.ReplicationPreference = new ReplicationPreferenceMapper().MapReplicationPreference(_collectionConfigCommand.ReplicationPreference);
            base.Message = this;
        }