0
avanekar02 created
How do i reinitialize the database with all default user and roles.
i have created some test users and tenants, i want to delete and restore the original database for users as it was when i ran the first update-database
thanks anwar
1 Answer(s)
-
1
You can empty the user, role, tenants... tables and re-run the application(The default zero will seed data).
If you care about the identity of the data, you can use
CHECKIDENT
https://stackoverflow.com/questions/21824478/reset-identity-seed-after-deleting-records-in-sql-server?answertab=votes#tab-top