Parameter ClassMVC+ (Model-Facade-View-Controller) Framework for ASP.NET
Database stored-procedure parameter class.
Inheritance Hierarchy

System Object
  NovaDimension.Data Parameter

Namespace: NovaDimension.Data
Assembly: NovaDimension.Data (in NovaDimension.Data.dll) Version: 4.0.204.0 (4.0.0204.0)
Syntax

public class Parameter
Examples

This sample shows how to use the Parameter class.
See Also: EnumDbParameter, EnumHelper
using system;
using NovaDimension.Component;
using NovaDimension.Data;

class TestClass()
{
    static int Main()
    {
        try
        {
            Parameter param = new Parameter();
            param.Name = "@id";
            param.Direction = EnumHelper.Value(EnumDbParameter.PARAM_DIRECTION_INPUT);
            param.DbType = EnumHelper.Value(EnumDbParameter.PARAM_DBTYPE_INT32);
            param.Value = Convert.ToString(1);
            // ...
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
    }
}
See Also