public override string GetCommand() { var query = new Query(CollectionInstance.Name) .AsInsert(CollectionInstance.GetIndexedValues(Document)); return(Compiler.Compile(query).RawSql); }
public override string GetCommand() { var query = new Query(CollectionInstance.Name) .AsUpdate(CollectionInstance.GetIndexedValues(Document, ignoreIdKey: true)) .Where(Collection.IdKey, Document.Id); return(Compiler.Compile(query).RawSql); }