Listing 2: DLinq Mapping for the Department Table [Table(Name="[HumanResources].[Department]")] public partial class Department : System.Data.DLinq.IChangeNotifier { private short _DepartmentID; private string _Name; private string _GroupName; private System.DateTime _ModifiedDate; private EntitySet _EmployeeDepartmentHistory; [Column(Storage="_DepartmentID", DbType="SmallInt NOT NULL IDENTITY", Id=true, AutoGen=true)] public short DepartmentID { get { return this._DepartmentID; } } [Column(Storage="_Name", DbType="NVarChar(50) NOT NULL")] public string Name { get { return this._Name; } set { if ((this._Name != value)) { this.OnChanging(); this._Name = value; } } }