[dba-VB] NetReflectionSample - Part II of IV

Shamil Salakhetdinov shamil at smsconsulting.spb.ru
Sat Nov 7 08:20:44 CST 2009


 

#region Custom business functionality

namespace NetReflectionSample

{

    /// <summary>

    /// SP1 wrapper class simulator

    /// </summary>

    public class SP1 : StoredProcedureRunner

    {

        public override void Run()

        {

            Console.WriteLine("Running {0}.Run...",
this.GetType().ToString());

        }

 

    }

    /// <summary>

    /// SP2 wrapper class simulator

    /// </summary>

    public class SP2 : StoredProcedureRunner

    {

        public void Run(

            int prm1,

            string prm2,

            decimal prm3,

            DateTime prm4)

        {

            Console.WriteLine("Running {0}.Run...",
this.GetType().ToString());

            Console.WriteLine("Parameters: prm1={0}, prm2={1}, prm3={2},
prm4={3}",

                  prm1, prm2, prm3, prm4);

        }

    }

    /// <summary>

    /// SP3 wrapper class simulator

    /// </summary>

    public class SP3 : StoredProcedureRunner

    {

        public void Run(

            int prm1,

            string prm2)

        {

            Console.WriteLine("Running {0}.Run...",
this.GetType().ToString());

            Console.WriteLine("Parameters: prm1={0}, prm2={1}",

                  prm1, prm2);

        }

    }

 

}

#endregion

 

--Shamil




More information about the dba-VB mailing list