using (ServiceContext svcContext = new ServiceContext(_serviceProxy)) { var query_join8 = from a in svcContext.AccountSet join c in svcContext.ContactSet on a.PrimaryContactId.Id equals c.ContactId into gr from c_joined in gr.DefaultIfEmpty() select new { contact_name = c_joined.FullName, account_name = a.Name }; foreach (var c in query_join8) { System.Console.WriteLine(c.contact_name + " " + c.account_name); } }
https://msdn.microsoft.com/en-us/library/gg509017.aspx
'C# > C# 코딩의 기술' 카테고리의 다른 글
devexpress 그리드 필터를 변경해도 체크내역을 남겨야할 경우 (0) | 2018.05.17 |
---|---|
테이블명을 제한적으로 만들어서 관리가 필요할때. (0) | 2018.04.19 |
c# 인터페이스 IDisposable (0) | 2015.12.15 |
c# if / switch (0) | 2015.12.10 |
c# 의 var (0) | 2015.12.10 |