我在地图上使用流体核,具体如下:
public class ContentTagMap: ClassMap<Employee>
{
public EmployeeMap()
{
Id(t => t.Id);
Map(t => t.Name);
HasManyToMany(t => t.Company);
}
}
public class CompanyMap: ClassMap<Company>
{
public HelpMap()
{
Id(h => h.Id);
Map(h => h.CompanyName).Length(6000);
Map(h => h.address).Length(6000);
HasManyToMany(h => h.Employee);
}
}
这些绘图产品 Employee Table,Company table and Employee ToCompany
www.un.org/spanish/ecosoc Employee Table
Id Name
1 John
2 MAX
Company Table
Id CompanyName address
1 HTC ABC
2 HTC2 India
<>Employee ToCompany>>
Employee_Id Company_Id
1 1
2 1
我怎么能用Id 1删除该雇员?