System.Data.Linq.Mapping 命名空间包含用于生成表示关系数据库的结构和内容的 LINQ to SQL 对象模型的类
[Table(Name="Employees")]
public class Employees
{
private string _LastName;
// …
[Column(Storage="_LastName", DbType="NVarChar(20) NOT NULL",
CanBeNull=false)]
public string LastName
{
get
{
return this._LastName;
}
set
{
if ((this._LastName != value))
{
this.OnPropertyChanging("LastName");
this._LastName = value;
this.OnPropertyChanged("LastName");
}
}
}
}