コード例 #1
0
 public static SqlCommand GetCommand()
 {
     return(new SqlCommand
     {
         Connection = SqlConnectionContext.GetOpenSqlConnection(),
         Transaction = SqlConnectionContext.GetTransaction()
     });
 }
コード例 #2
0
 public static SqlCommand GetCommand(string storedProcedureName)
 {
     return(new SqlCommand
     {
         Connection = SqlConnectionContext.GetOpenSqlConnection(),
         Transaction = SqlConnectionContext.GetTransaction(),
         CommandType = CommandType.StoredProcedure,
         CommandText = storedProcedureName
     });
 }
コード例 #3
0
 public void OnEnter(Type declaringType, object instance, MethodBase methodbase, object[] values)
 {
     sqlContext = new SqlConnectionContext();
 }