⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 customer.cs

📁 對c#初學者參考..為課題asp.net 2.0教材代碼
💻 CS
字号:
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public class Customer
{
    private int _customerID;
    private string _companyName;
    private string _contactName;
    private string _contactTitle;

    public int CustomerID
    {
        get
        {
            return _customerID;
        }

        set
        {
            _customerID = value;
        }
    }

    public string CompanyName
    {
        get
        {
            return _companyName;
        }

        set
        {
            _companyName = value;
        }
    }

    public string ContactName
    {
        get
        {
            return _contactName;
        }

        set
        {
            _contactName = value;
        }
    }

    public string ContactTitle
    {
        get
        {
            return _contactTitle;
        }

        set
        {
            _contactTitle = value;
        }
    }

    public Customer()
    {
    }

    public System.Data.DataSet Select(Int32 customerId)
    {
        // Implement logic here to retrieve the Customer 
        // data based on the methods customerId parameter

        System.Data.DataSet ds = new System.Data.DataSet();
        ds.Tables.Add(new System.Data.DataTable());
        return ds;
    }

    public void Insert(Customer c)
    {
        // Implement Insert logic
    }

    public void Update(Customer c)
    {
        // Implement Update logic
    }

    public void Delete(Customer c)
    {
        // Implement Delete logic
    }

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -