Sunday, April 1, 2012

Product Catelog App class in asp.net c# -1


BALCategoryMaster.cs

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
/// <summary>
/// Summary description for BALCategoryMaster
/// </summary>
public class BALCategoryMaster
{
    private int _CategoryId;
    public int CategoryId
    {
        get { return _CategoryId; }
        set { _CategoryId = value; }
    }
    private string _CategoryName;
    public string CategoryName
    {
        get { return _CategoryName; }
        set { _CategoryName = value; }
    }
}

BALProductMaster.cs


using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for BALProductMaster
/// </summary>
public class BALProductMaster
{
    public BALProductMaster()
    {
        //
        // TODO: Add constructor logic here
        //
    }
    private string _ProductName;
    public string ProductName
    {
        get { return _ProductName; }
        set { _ProductName = value; }
    }
    private int _ProductID;
    public int ProductID
    {
        get { return _ProductID; }
        set { _ProductID = value; }
    }

    private string _ProductCode;
    public string ProductCode
    {
        get { return _ProductCode; }
        set { _ProductCode = value; }
    }
    private int _CategoryId;
    public int CategoryId
    {
        get { return _CategoryId; }
        set { _CategoryId = value; }
    }
    private string _Image;
    public string Image
    {
        get { return _Image; }
        set { _Image = value; }
    }
    private string _Detail;
    public string Detail
    {
        get { return _Detail; }
        set { _Detail = value; }
    }
}