Hi,
I having a little trouble understanding how everything relates to each other. Here's one example I hope someone can help me out with:
In chpt 5, page 166 is the following code (translated to
vb.net):
Imports Wrox.WebModules.Accounts
xxxx
Public Sub New(ByVal userId As Integer)
Dim moduleSettings As Configuration.ModuleSettings = _
Configuration.ModuleConfig.GetSettings()
Dim dataUser As New Data.User(moduleSettings.ConnectionString)
myIdentity = New SiteIdentity(userId)
myPermissionList = dataUser.GetEffectivePermissionList(userId)
myRoleList = dataUser.GetUserRoles(userId)
End Sub
My specific question is the following line:
Dim dataUser As New Data.User(moduleSettings.ConnectionString)
How does the code know where Data.User is?
I assumed it was the 'Imports Wrox.WebModules.Accounts' line but I can comment this out and it still recognizes the Data.User.
So how does the app know? Just trying to get a grip on this. Any explanation or overview is greatly appreciated. Thanks!
- Donald