ただし、プログラムがクエリポイントで停止するたびに、2つのデータベースからのlinqクエリがあります。私はVSを使用してlinqをデバッグする方法を知らない。誰かが私がここで間違っていることを理解するのを助けることができますか?ありがとうございました。2つのデータベースからのlinqクエリ
public List<Promotion> GetBroder(string source)
{
string _connString = ConfigurationManager.AppSettings["DB1"];
PromotionDataContext dc = new PromotionDataContext(_connString);
string connString = ConfigurationManager.AppSettings["DB2"];
ReachDirectDataContext RDdc = new ReachDirectDataContext(connString);
return (from b in RDdc.BrokerNos
from p in dc.Promotions
where p.Source == source && p.Broker == b.BrokerNo1
select new Promotion() {Code=p.Code,BrokerName=b.Name}).ToList<Promotion>();
}
あなたはデータアクセス技術のどのような種類を使用している(例:? EF + Linq-to-entities) –
エンティティへのlinq –