title: MVC 2.0 C# ModelUpdate wont update
body: <p>I'm having trouble getting a ModelUpdate or TryModelUpdate to work in my code.</p>
  
  <p>I'm using the default Role Manager and Login system created by MVC when running the ASP.Net configuration tool.  What I'm trying to do is add another column to the Users table so I can record if my users are also customers.  So I want to record their CustomerID there.</p>
  
  <p>I used the ADO Entity Data Model to generate all my model code based off my database.  The code it created for the field I want to update is here:</p>
  
  <pre><code>    public string CustomerID
      {
          get
          {
              return this._CustomerID;
          }
          set
          {
              this.OnCustomerIDChanging(value);
              this.ReportPropertyChanging("CustomerID");
              this._CustomerID = global::System.Data.Objects.DataClasses.StructuralObject.SetValidValue(value, true);
              this.ReportPropertyChanged("CustomerID");
              this.OnCustomerIDChanged();
          }
      }
      private string _CustomerID;
      partial void OnCustomerIDChanging(string value);
      partial void OnCustomerIDChanged();
  </code></pre>
  
  <p>In my controller Im trying to update the CustomerID field with this code:</p>
  
  <pre><code>                var userToUpdate = dbu.aspnet_Users.First(u =&gt; u.UserName == User.Identity.Name);
                  UpdateModel(userToUpdate, new string[] { "CustomerID"}, txtID);
                  dbu.SaveChanges();
  </code></pre>
  
  <p>But I get an error saying the overload method has some invalid arguments.</p>
  
  <p>I get that the issue is in assigning txtID to CustomerID based off the error, but whats the correct way to do it?</p>
  
  <p>If I need to add more info please let me know.</p>