mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Optimize naming
This commit is contained in:
@@ -24,7 +24,7 @@ namespace MongoDb.Ado.data
|
||||
var doc = documents[0];
|
||||
var filter = doc["filter"].AsBsonDocument;
|
||||
var update = doc["update"].AsBsonDocument;
|
||||
if (IsUpateBySql(update))
|
||||
if (IsHandlePipelineUpdate(update))
|
||||
{
|
||||
return await HandlePipelineUpdate(collection, filter, update);
|
||||
}
|
||||
@@ -93,7 +93,7 @@ namespace MongoDb.Ado.data
|
||||
}
|
||||
}
|
||||
|
||||
private static bool IsUpateBySql(BsonDocument update)
|
||||
private static bool IsHandlePipelineUpdate(BsonDocument update)
|
||||
{
|
||||
return update.ElementCount == 1 && update.Contains("$set");
|
||||
}
|
||||
|
Reference in New Issue
Block a user