IW1QLH

  • Increase font size
  • Default font size
  • Decrease font size

Write a simple Business Logic Layer (BLL)

E-mail Print PDF
ASPX.CS C# - How to write a simple Business Logic Layer (BLL)

[System.ComponentModel.DataObject]
public class CustomerBLL : BaseBLL
{

    private CustomerTableAdapter _adapter = null;
    protected CustomerTableAdapter Adapter
    {
        get
        {
            if (_adapter == null)
                _adapter = new CustomerTableAdapter();
            return _adapter;
        }
    }

    [System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Select, true)]
    public DataSet.CustomerDataTable GetData()
    {
        return Adapter.GetData();
    }

}

Last Updated on Wednesday, 28 February 2007 14:05