続き(>>23)
// Name の後ろにはテーブルの名前
[System.Data.Linq.Mapping.Table(Name = "Production.Location")]
public class TableLocation
{
// 重要:項目名はデータベースのコラム名とあわせておく
// ここでは、さらにプライマリキーとして認識させる
[System.Data.Linq.Mapping.Column(IsPrimaryKey = true)]
public short LocationID { get; set; }

[System.Data.Linq.Mapping.Column]
public string Name { get; set; }

[System.Data.Linq.Mapping.Column]
public System.Decimal CostRate { get; set; }

[System.Data.Linq.Mapping.Column]
public System.Decimal Availability { get; set; }

[System.Data.Linq.Mapping.Column]
public System.DateTime ModifiedDate { get; set; }
}