DbCommand oDBCommand = oDatabase.GetStoredProcCommand("Proc_GetCourseWithStatus");
oDBCommand.CommandType = CommandType.StoredProcedure;
//我们无法在现有应用程序的所有页面中设置CommandTimeout, 我们还在web.config中设置了连接字符串,但它默认只有30秒
// oDBCommand.CommandTimeout = 100;
oDatabase.AddInParameter(oDBCommand, "InstitutionCode", DbType.Int32, iInstCode);
oDatabase.AddInParameter(oDBCommand, "UserApplicationLoginActivityID", DbType.Int64, loginActivityLogID);