I have a application which I would like to add custom fields to the users table. I am not sure how to work after adding the columns. The columns are foreign keys to another table which holds more details for the user.
I am using Linq-to-SQL. So every time I add a user (using the membership functions i.e. Membership.CreateUser(..)) I end up calling another service to update the foreign keys on the users table.
Any better way of doing this will be highly appreciated.
Why are you adding foreign keys to the
Usertable, pointing to another table with additional info??I would do it the other way around:
UserInfoUserInfothat points to the row in your ASP.NET membershipUsertableUsertable alone – so you won’t run into problems when e.g. an upgrade to the ASP.NET membership system is rolled out…..