var qStore = from x in cnt.T_StoreInfo
join y in cnt.T_ProviderStoreMapping on x.StoreCode equals y.StoreCode
where y.PID == provider.ID
select x;
if (qStore != null && qStore.Count() > 0)
{
foreach (var store in qStore)
{
store.IsInvocable = 0;
//store.InvocableDate = null;
}
cnt.SubmitChanges();
}
T_ContentTemplate mt = (from x in cnt.T_ContentTemplate where x.TemplateType == 4 select x).FirstOrDefault();
Linq连接查询
最新推荐文章于 2024-06-03 14:51:13 发布