728x90
public class User
{
   
public int UserId { get; set; }
   
public string UserName { get; set; }
   
public string Email { get; set; }
    public string CompanyName { get; set; }
}

var users = from A in A_Users
                 join B
in B_Users on u.UserId equals mem.UserId
                select new User
               
{
                    UserId = A.UserId,
                   
UserName = A.UserName,
                   
Email = A.Email,
                    CompanyName = companies.CompanyName

                
};

728x90

'C# > Winform' 카테고리의 다른 글

(Linq) Linq to DataSet  (0) 2017.04.14
(Linq) linq to xml  (0) 2017.04.14
(WPF) wpf 관련 리소스 정리  (0) 2017.04.13
(WPF) 챨스패졸드 책 정리  (0) 2017.04.13
(.NET) async, await 비동기 샘플 코드  (0) 2017.04.13
Posted by kjun.kr
,