我有两个数据库:
MasterDBChildDB
在MasterDB我有以下表格:
Customer_TableTenant_TableCustomer-Tenant_Table
在Customer_Table我有:
CustomerIdCustomerName
在Tenant_Table我有:
TenantIdTenantName
在Customer-Tenant_Table:
Customer-Tenant_IdCustomerIdTenantID
现在ChildDB我有一张桌子FacilityGroup_Table
,里面有:
TenantIDFacilityGroupId- 等等……</li>
我在这里尝试做的是以下内容。在我看来,我有一个Customer_Table从MasterDB. 在此基础上,正在捕获CustomerName相应的内容。CustomerID现在,问题是我不知道如何使用它CustomerId来获取相应的内容TenantId并将其保存TenantId在FacilityGroup_Table我的ChildDB. 我是 LINQ 的新手,所以我可以使用一些帮助。