Can I add tables of content in the same database as the users? ASP.Net identity

0

I created an ASP.Net MVC 5, EF 6 project with individual accounts.

The database is automatically generated with 5 tables:

  • AspNetRoles
  • ASpNetUserClaim
  • AspNetUserLogins
  • AspNetUserRoles
  • AspNetUsers

Is it good practice to put more tables? For example:

  • Product
  • Category
  • Subcategories
  • Order ...

Is this all in the same user database, is it a good practice or do you have to stay in a separate database?

    
asked by anonymous 05.04.2014 / 03:30

1 answer

0

There is no problem doing this.

Contexts are separated in development only by the issue of building / destroying the database using the Code First approach. The idea is to not have to create users every time the database is dropped.

Taking advantage of this, if you do override of the default Identity methods to reference entities in your context, the base must be joined anyway to take advantage of the data from the other tables in your system .

    
05.04.2014 / 03:34