0
我使用对象关系设计器生成了NORTHWND数据库的Employee表的对象模型。为什么NORTHWND数据库的员工表有自己的参考?
为什么Employee类具有自我参考?:
这是生成的类的相关部分:
[global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.Employees")]
public partial class Employee : INotifyPropertyChanging, INotifyPropertyChanged
{
// ... other properties ...
private EntitySet<Employee> _Employees;
private EntityRef<Employee> _Employee1;
}