Merge pull request #249 from alex-310/orderbynull
This commit is contained in:
commit
a4ea274638
|
@ -106,6 +106,10 @@ namespace ShardingCore.Sharding.Enumerators
|
||||||
{
|
{
|
||||||
list.Add((IComparable)value);
|
list.Add((IComparable)value);
|
||||||
}
|
}
|
||||||
|
else if (value == null) // Support Nullable<xx>
|
||||||
|
{
|
||||||
|
list.Add(null);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new NotSupportedException($"order by value [{order}] must implements IComparable");
|
throw new NotSupportedException($"order by value [{order}] must implements IComparable");
|
||||||
|
|
Loading…
Reference in New Issue