customer.cs

来自「mysql备份程序,很好很强大,欢迎使用」· CS 代码 · 共 48 行

CS
48
字号
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace LinqDemo.LINQtoData
{
    [Table(Name = "Customers")]
    public class Customer
    {
        private string _CustomerID;
        private string _CompanyName;
        private string _ContactName;
        private string _ContactTitle;

        [Column(Name = "CustomerID", Storage = "_CustomerID", DbType = "nchar NOT NULL",
        IsPrimaryKey = true, IsDbGenerated = false)]
        public string CustomerID
        {
            get { return _CustomerID; }
            set { _CustomerID = value; }
        }

        [Column(Name = "CompanyName", Storage = "_CompanyName", DbType = "nvarchar NOT NULL")]
        public string CompanyName
        {
            get { return _CompanyName; }
            set { _CompanyName = value; }
        }

        [Column(Name = "ContactName", Storage = "_ContactName",
        DbType = "nvarchar NULL")]
        public string ContactName
        {
            get { return _ContactName; }
            set { _ContactName = value; }
        }

        [Column(Name = "ContactTitle", Storage = "_ContactTitle", DbType = "nvarchar NULL")]
        public string ContactTitle
        {
            get { return _ContactTitle; }
            set { _ContactTitle = value; }
        }
    }
}

⌨️ 快捷键说明

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