public InsertDocumentsOperation() { _insertCommand = new Alachisoft.NosDB.Common.Protobuf.InsertDocumentsCommand.Builder(); _documents = new List <IJSONDocument>(); base.Message = this; base.OperationType = DatabaseOperationType.Insert; }
public InsertDocumentsOperation(Alachisoft.NosDB.Common.Protobuf.Command command) : base(command.ToBuilder()) { _insertCommand = command.InsertDocumentsCommand.ToBuilder(); _documents = new List <IJSONDocument>(); foreach (string document in _insertCommand.DocumentsList) { Documents.Add(JSONDocument.Parse(document)); } base.Message = this; }