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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

android - IBM Worklight 6.1 [Application Error] There was a network error (file:///android_asset/www/index.html) -