0
我已經創建了aspnet登錄帳戶持有者表的edmx模型。實體框架和包括
的EntityFramework刪除AspNetUserRoles表,並直接顯示AspNetRole和AspNetUser表
之間的關係我的問題是如何或什麼是最好的,爲什麼得到AspNetUser中有一定的作用角色列表?
Public Function getAccountHoldersInRoles(role As String) As IEnumerable(Of AspNetUser)
Dim aspNetUsers = From u In db.AspNetUsers.Include("AspNetRoles")
For Each u In aspNetUsers
??????????????
Next
Return aspNetUsers
End Function