Shaolinq.Persistence.DataRecordMethods.GetMethod C# (CSharp) Method

GetMethod() public static method

public static GetMethod ( string name ) : MethodInfo
name string
return System.Reflection.MethodInfo
		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);
			}
		}
	}

Usage Example

 protected internal void DefinePrimitiveSqlDataType(Type type, string name, string getValueMethod)
 {
     this.DefinePrimitiveSqlDataType(type, name, DataRecordMethods.GetMethod(getValueMethod));
 }
All Usage Examples Of Shaolinq.Persistence.DataRecordMethods::GetMethod
DataRecordMethods