mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-20 10:38:09 +08:00
Update mongodb
This commit is contained in:
@@ -108,7 +108,7 @@ namespace SqlSugar.MongoDbCore
|
|||||||
{
|
{
|
||||||
if (expression.Expression is ParameterExpression parameter)
|
if (expression.Expression is ParameterExpression parameter)
|
||||||
{
|
{
|
||||||
if (_context.context != null)
|
if (_context?.context != null)
|
||||||
{
|
{
|
||||||
var entityInfo = _context.context.EntityMaintenance.GetEntityInfo(parameter.Type);
|
var entityInfo = _context.context.EntityMaintenance.GetEntityInfo(parameter.Type);
|
||||||
var columnInfo = entityInfo.Columns.FirstOrDefault(s => s.PropertyName == leftValue);
|
var columnInfo = entityInfo.Columns.FirstOrDefault(s => s.PropertyName == leftValue);
|
||||||
|
Reference in New Issue
Block a user