Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 10th, 2003, 12:20 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Overview Help

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Overview - Language and Environments pascal Intro Programming 1 May 19th, 2006 08:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.