mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-17 05:29:33 +08:00
Update mongodb
This commit is contained in:
parent
8050f0cc6b
commit
092e58f0b2
@ -86,7 +86,11 @@ namespace MongoDb.Ado.data
|
|||||||
|
|
||||||
public override bool IsDBNull(int ordinal)
|
public override bool IsDBNull(int ordinal)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
if (ordinal < 0 || ordinal >= _current.ElementCount)
|
||||||
|
throw new IndexOutOfRangeException($"Invalid ordinal: {ordinal}");
|
||||||
|
|
||||||
|
var value = _current.GetElement(ordinal).Value;
|
||||||
|
return value == null || value.IsBsonNull;
|
||||||
}
|
}
|
||||||
|
|
||||||
public override string GetName(int ordinal)
|
public override string GetName(int ordinal)
|
||||||
|
Loading…
Reference in New Issue
Block a user