mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update mongodb
This commit is contained in:
parent
6f0b17cf6c
commit
5de89443b3
@ -1,4 +1,6 @@
|
|||||||
using SqlSugar.MongoDbCore;
|
using MongoDB.Bson.IO;
|
||||||
|
using MongoDB.Bson;
|
||||||
|
using SqlSugar.MongoDbCore;
|
||||||
using System;
|
using System;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Linq.Expressions;
|
using System.Linq.Expressions;
|
||||||
@ -12,7 +14,11 @@ namespace SqlSugar.MongoDb
|
|||||||
context.resolveType = resolveType;
|
context.resolveType = resolveType;
|
||||||
context.context = this.Context;
|
context.context = this.Context;
|
||||||
var sql=MongoNestedTranslator.Translate(expression, context);
|
var sql=MongoNestedTranslator.Translate(expression, context);
|
||||||
this.Result.Append(sql);
|
var shellString = sql.ToJson(new JsonWriterSettings
|
||||||
|
{
|
||||||
|
OutputMode = JsonOutputMode.Shell
|
||||||
|
});
|
||||||
|
this.Result.Append(shellString);
|
||||||
}
|
}
|
||||||
|
|
||||||
public SqlSugarProvider Context { get; set; }
|
public SqlSugarProvider Context { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user