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