Пример #1
0
        public static SqlParameter AddUdtOutput(this SqlParameterCollection spc, string name, string udtname)
        {
            var param = SqlParams.UdtOutput(name, udtname);

            return(spc.Add(param));
        }
Пример #2
0
        public static SqlParameter AddStructured(this SqlParameterCollection spc, string name, string typename, DbDataReader value)
        {
            var param = SqlParams.Structured(name, typename, value);

            return(spc.Add(param));
        }
Пример #3
0
        public static SqlParameter AddReturn(this SqlParameterCollection spc, string name, SqlDbType type)
        {
            var param = SqlParams.Return(name, type);

            return(spc.Add(param));
        }
Пример #4
0
        public static SqlParameter AddInput(this SqlParameterCollection spc, string name, object value)
        {
            var param = SqlParams.Input(name, value);

            return(spc.Add(param));
        }
Пример #5
0
        public static SqlParameter AddOutput(this SqlParameterCollection spc, string name, SqlDbType type, int?size = null)
        {
            var param = SqlParams.Output(name, type, size);

            return(spc.Add(param));
        }