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

📄 customer.cs

📁 mysql备份程序,很好很强大,欢迎使用
💻 CS
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -