Esempio n. 1
0
        public static int TestOutputParametersWithoutTableProcedure(this TestdbDB dataConnection, string?aInParam, out sbyte?aOutParam)
        {
            var ret = dataConnection.ExecuteProc("`TestOutputParametersWithoutTableProcedure`",
                                                 new DataParameter("aInParam", aInParam, DataType.VarChar),
                                                 new DataParameter("aOutParam", null, DataType.SByte)
            {
                Direction = ParameterDirection.Output
            });

            aOutParam = Converter.ChangeTypeTo <sbyte?>(((IDbDataParameter)dataConnection.Command.Parameters["aOutParam"]).Value);

            return(ret);
        }
Esempio n. 2
0
        public static IEnumerable <Person> TestProcedure(this TestdbDB dataConnection, int?param3, ref int?param2, out int?param1)
        {
            var ret = dataConnection.QueryProc <Person>("`TestProcedure`",
                                                        new DataParameter("param3", param3, DataType.Int32),
                                                        new DataParameter("param2", param2, DataType.Int32)
            {
                Direction = ParameterDirection.InputOutput
            },
                                                        new DataParameter("param1", null, DataType.Int32)
            {
                Direction = ParameterDirection.Output
            }).ToList();

            param2 = Converter.ChangeTypeTo <int?>(((IDbDataParameter)dataConnection.Command.Parameters["param2"]).Value);
            param1 = Converter.ChangeTypeTo <int?>(((IDbDataParameter)dataConnection.Command.Parameters["param1"]).Value);

            return(ret);
        }
Esempio n. 3
0
 public static int AddIssue792Record(this TestdbDB dataConnection)
 {
     return(dataConnection.ExecuteProc("`AddIssue792Record`"));
 }