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; }
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; }