sql - How can I make selection in inheritance case? -
i have database table "person", person employee or admin. have person table, information id, password, , name. person log in admin or employee, each has own interface, both inherit information person. how can represent in database design, , how can know if selected person admin or employee?
you have new column on person table called usertype example. 1 admin , 2 employee.
you have totally seperate table called users. table have userid, personid , usertype.
finally use asp.net authentication\authorisation. user role management built in. asp.net identity
Comments
Post a Comment