2013-04-11 138 views

回答

0

要獲取基於用戶名客戶端,這樣的事情應該工作。

dim client = (_ 
    From client In Dim_Client 
    Where client.App_Users.Any(Function(user) user.Username = "foo") 
    Select client).Single 
1

搜索具有所需用戶名的用戶並獲取關聯的客戶端。

Dim username = "Bob" 
Dim clients = 
    From user In db.App_Users 
    Where user.Username = username 
    Select user.Dim_Client