I want when my application starts, to execute some code
if (!WebMatrix.WebData.WebSecurity.Initialized){
WebMatrix.WebData.WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "UserName", autoCreateTables: true);
There is a folder App_start
at the project, but I didn't find any file that I can add this code. Do you know if there is a specific file that has this purpose?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…