Adds ReadTable function to DBTools
This commit is contained in:
parent
2afcb35da1
commit
383715715c
2 changed files with 42 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ namespace TShockAPI.DB
|
|||
{typeof(decimal), (s, i) => s.GetDecimal(i)},
|
||||
{typeof(float), (s, i) => s.GetFloat(i)},
|
||||
{typeof(double), (s, i) => s.GetDouble(i)},
|
||||
{typeof(object), (s, i) => s.GetValue(i)},
|
||||
};
|
||||
|
||||
public static T Get<T>(this IDataReader reader, string column)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue