Exemplo n.º 1
0
        public static MultiResult <T> MultiExec <T>(this SqlProc proc) where T : class
        {
            MultiResult <T> result = new MultiResult <T>();

            result.Prepare(proc);
            return(result);
        }
Exemplo n.º 2
0
        public static MultiResult <object[]> MultiObj(this Context db, string proc, Action <SqlCommand> setup = null)
        {
            var procMap = new SqlProc {
                Context = db, Connection = db.SqlConnection, CmdText = proc, Param = null
            };
            var result = new MultiResult <object[]>();

            return(result.Prepare(procMap, setup));
        }
Exemplo n.º 3
0
        public static MultiResult <object[]> MultiObj(this SqlProc proc)
        {
            var result = new MultiResult <object[]>();

            return(result.Prepare(proc));
        }
Exemplo n.º 4
0
        // Sql data set to multiple XML
        public static MultiResult <XElement> MultiXElem(this SqlProc proc)
        {
            var result = new MultiResult <XElement>();

            return(result.Prepare(proc));
        }