Skip to content

Commit

Permalink
Merge pull request #260 from taosdata/#257
Browse files Browse the repository at this point in the history
DataReaderExtensions的ToObject有个大小写的BUG #257
  • Loading branch information
huskar-t committed Jun 30, 2023
2 parents 323570a + f0e9eb9 commit eb20195
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/IoTSharp.Data.Taos/DataReaderExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public static List<T> ToObject<T>(this IDataReader dataReader)
var _value = dataReader[i];
if (_value != DBNull.Value)
{
//var pr = from p in pots where (p.Name == strKey || p.ColumnNameIs(strKey)) && p.CanWrite select p;
var pr = from p in pots where (p.Name == strKey) && p.CanWrite select p;
var pr = from p in pots where (string.Equals( p.Name ,strKey, StringComparison.OrdinalIgnoreCase)) && p.CanWrite select p;
if (pr.Any())
{
var pi = pr.FirstOrDefault();
Expand Down

0 comments on commit eb20195

Please sign in to comment.