示例#1
0
        public override string GetCommand()
        {
            var query = new Query(CollectionInstance.Name)
                        .AsInsert(CollectionInstance.GetIndexedValues(Document));

            return(Compiler.Compile(query).RawSql);
        }
示例#2
0
        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);
        }