public static GetMethod ( string name ) : |
||
name | string | |
return |
public static MethodInfo GetMethod(string name)
{
switch (name)
{
case "GetBoolean":
return GetBooleanMethod;
case "GetInt32":
return GetInt32Method;
case "GetInt64":
return GetInt64Method;
case "GetString":
return GetStringMethod;
case "GetValue":
return GetValueMethod;
case "GetGuid":
return GetGuidMethod;
default:
return typeof(IDataRecord).GetMethod(name);
}
}
}
protected internal void DefinePrimitiveSqlDataType(Type type, string name, string getValueMethod) { this.DefinePrimitiveSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod)); }