mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-21 02:58:05 +08:00
Update mongodb guid
This commit is contained in:
@@ -122,6 +122,10 @@ namespace SqlSugar.MongoDb
|
||||
var utcNow = DateTime.SpecifyKind(dt, DateTimeKind.Utc);
|
||||
return new BsonDateTime(utcNow);
|
||||
}
|
||||
else if (value is Guid g)
|
||||
{
|
||||
value = g.ToString();
|
||||
}
|
||||
return BsonValue.Create(value);
|
||||
}
|
||||
internal static MongoDB.Bson.IO.JsonWriterSettings GetJsonWriterSettings()
|
||||
|
Reference in New Issue
Block a user