Adds ReadTable function to DBTools

This commit is contained in:
Twitchy 2011-07-28 13:08:49 +12:00
parent 2afcb35da1
commit 383715715c
2 changed files with 42 additions and 0 deletions

View file

@ -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)