How to create two type of users with identity and .net core 2

后端 未结 2 1600
执笔经年
执笔经年 2021-01-16 03:18

I start to develop an web application with .net core 2 and web service..

when a user registers on the site, he can choose whether he is a company or a simple user, s

2条回答
  •  情话喂你
    2021-01-16 04:16

    If you want to store data of both users in same table use TPH tabel per hierarchy and if you have many column for esch of class use a TPT Here is the link with a very nice explation https://www.learnentityframeworkcore.com/inheritance/table-per-hierarchy

提交回复
热议问题