コード例 #1
0
            public bool SetupCommand(IDataInteraction command)
            {
                command.ExecuteText(GetSql());
                command.AddOutputParameter("@param", DbType.StringFixedLength, 4);

                return(true);
            }
コード例 #2
0
 public bool SetupCommand(IDataInteraction command)
 {
     command.ExecuteText(@"
         SELECT @value = 'param';
         SELECT 'result';");
     command.AddOutputParameter("@value", DbType.AnsiString, 5);
     return(true);
 }
コード例 #3
0
 public bool SetupCommand(IDataInteraction command)
 {
     command.ExecuteText("SELECT @param = 'TEST';");
     command.AddOutputParameter("@param", DbType.StringFixedLength, 4);
     return(false);
 }
コード例 #4
0
 public bool SetupCommand(IDataInteraction command)
 {
     command.ExecuteText("SELECT @param = 'TEST';");
     command.AddOutputParameter("@param", DbType.AnsiString, 4);
     return(true);
 }
コード例 #5
0
 public bool SetupCommand(IDataInteraction interaction)
 {
     interaction.ExecuteText("SELECT @value = 5;");
     interaction.AddOutputParameter("@value", DbType.Int32, 0);
     return(true);
 }
コード例 #6
0
 public bool SetupCommand(IDataInteraction interaction)
 {
     interaction.ExecuteText("SELECT @value = 'TEST';");
     interaction.AddOutputParameter("@value", DbType.AnsiString, 8000);
     return(true);
 }