Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

What exactly does the ServiceContext do for Linq queries?

$
0
0
using (ServiceContext svcContext = new ServiceContext(serviceProxy))
{
 var query_where1 = from a in svcContext.AccountSet
                    where a.Name.Contains("Contoso")
                    select a;
 foreach (var a in query_where1)
 {
  System.Console.WriteLine(a.Name + " " + a.Address1_City);
 }
}

I am trying to workout what the ServiceContext actually does. The SDK did not help.
Also what does the serviceProxy do?



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images