mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
Update mongodb
This commit is contained in:
parent
5d0996d8ad
commit
0d174c034e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user