Jiri Gala cleanup script method obsessions C # .NET common rights management system component of the reference data table

   We try, learning various software functions are hoping to complete the full data do not demonstrate each data entry is their own, but the other procedures will be used, functions are generally understood to be formally launched, immediately want to have a clean system, can be used directly, it is best able to achieve the goal within a few seconds.

   For the real needs of more customers, taking the time today to universal rights management system clearly deranged script demonstrates data collate it, and copy the following script into the database to perform at the script can get a clean formal system can be directly applicable, and within seconds you can get clean, formally launched the database when needed, the software can enter the official data, presentation data is cleaned up.

-  Work log table
TRUNCATE TABLE Base_WorkReport

-  card management
TRUNCATE TABLE Base_Businesscard

-  Reviews table
TRUNCATE TABLE Base_Comment

-  Folder table
TRUNCATE TABLE Base_Folder
-  file table
TRUNCATE TABLE Base_File

-  News table
TRUNCATE TABLE Base_News

-  Contact Schedule
tABLE Base_ContactDetails TRUNCATE
-  liaison primary table
TRUNCATE tABLE Base_Contact

-  message table
TRUNCATE tABLE Base_Message

-  system exception table
TRUNCATE tABLE Base_Exception

-  system log table
TRUNCATE tABLE Base_Log

-  system parameter configuration table
TABLE Base_Parameter TRUNCATE

-  item table
TRUNCATE TABLE Base_Project

-  Staff (Staff) Table organized table
TRUNCATE TABLE Base_StaffOrganize
-  Staff (Staff) table
TRUNCATE TABLE Base_Staff

-  Field structure Definition Description
TRUNCATE TABLE Base_TableColumns

-  data storage table set permissions
tABLE Base_PermissionScope TRUNCATE
-  operating authority storage table
TRUNCATE tABLE Base_Permission

-  system role table
DELETE the FROM Base_Role the WHERE Code 
! = ' of the Administrators ' -  users shipping address table TRUNCATE tABLE Base_UserAddress -  user account organization table TRUNCATE tABLE Base_UserOrganize -  





 User account role table
TRUNCATE TABLE Base_UserRole
-  User accounts table
the DELETE UserName the FROM Base_User the WHERE 
! = ' Administrator ' -  sequence generator Table TRUNCATE TABLE Base_Sequence -  data dictionary master table (resource) -  Base_Items -  Module (menu) delete the whole table outside the authority of the General dELETE the FROM Base_Module the WHERE AllowDelete  = 1 -  the organization, the department table of test data deleted dELETE the FROM Base_Organize the WHERE IsInnerOrganize  = 1 -  operating authority generic term is defined delete permissions unexpected full rights defined dELETE FROM Base_PermissionItem WHERE AllowDelete  = 1  








 


 


 

Reproduced in: https: //my.oschina.net/iwenr/blog/227728

Guess you like

Origin blog.csdn.net/weixin_34253539/article/details/91675265