Fixed copy/paste mistakes
This commit is contained in:
parent
bb77a3baea
commit
d3cdb1095a
2 changed files with 4 additions and 4 deletions
|
|
@ -26,13 +26,13 @@ namespace TShockAPI.DB
|
||||||
{typeof(Int64), (s, i) => s.GetInt64(i)},
|
{typeof(Int64), (s, i) => s.GetInt64(i)},
|
||||||
{typeof(string), (s, i) => s.GetString(i)},
|
{typeof(string), (s, i) => s.GetString(i)},
|
||||||
{typeof(decimal), (s, i) => s.GetDecimal(i)},
|
{typeof(decimal), (s, i) => s.GetDecimal(i)},
|
||||||
{typeof(decimal), (s, i) => s.GetFloat(i)},
|
{typeof(float), (s, i) => s.GetFloat(i)},
|
||||||
{typeof(double), (s, i) => s.GetDouble(i)},
|
{typeof(double), (s, i) => s.GetDouble(i)},
|
||||||
};
|
};
|
||||||
|
|
||||||
public static T Get<T>(this IDataReader reader, string column)
|
public static T Get<T>(this IDataReader reader, string column)
|
||||||
{
|
{
|
||||||
return reader.Get<T>(column);
|
return reader.Get<T>(reader.GetOrdinal(column));
|
||||||
}
|
}
|
||||||
public static T Get<T>(this IDataReader reader, int column)
|
public static T Get<T>(this IDataReader reader, int column)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -35,5 +35,5 @@ using System.Runtime.InteropServices;
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
|
|
||||||
[assembly: AssemblyVersion("2.3.2.0705")]
|
[assembly: AssemblyVersion("2.3.2.0708")]
|
||||||
[assembly: AssemblyFileVersion("2.3.2.0705")]
|
[assembly: AssemblyFileVersion("2.3.2.0708")]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue