title: Updating the UserProfile table in MVC 4 to include other columns-Entity Framework keeps assigning dbo. ahead of the table
body: <p>...at least I think that's what's happening.</p>
  
  <p>I'm trying to use the UserProfile Table in my MVC website to hold more than just the userID and userName.  </p>
  
  <p>I'm sorry I'm a terrible noob and I know this is a poor hack of the example code, but here's what I've got in the AccountController:</p>
  
  <pre><code>    Public Function Register(ByVal model As RegisterModel) As ActionResult
  
          If ModelState.IsValid Then
          Using db As New UsersContext()
              ' Attempt to register the user
              Try
                  WebSecurity.CreateUserAndAccount(model.UserName, model.Password)
                  WebSecurity.Login(model.UserName, model.Password)
  
                  Dim id As Integer = WebSecurity.GetUserId(User.Identity.Name)
  
                  Dim userProfile As UserProfile = db.UserProfile.Find(id)
                  If IsNothing(UserProfile) Then
                      Return HttpNotFound()
                  End If
  
  
                  db.Entry(UserProfile).State = EntityState.Modified
                  db.SaveChanges()
  
                  Return RedirectToAction("Index", "Home")
              Catch e As MembershipCreateUserException
  
                  ModelState.AddModelError("", ErrorCodeToString(e.StatusCode))
              End Try
          End Using
      End If
  </code></pre>
  
  <p>It seems to be working, except that it's appending dbo. in front of the Table name instead of the halifax. that I've got in my schema.  How do I tell it what to use there?  If I put in a dbo. table, the code runs, but it puts the profile information in the wrong place.</p>