Brad Chen's Developer Blog Azure Database Data science Machine Learning Cloud
2019年7月7日 星期日
ASP.NET MVC Web app using the ASP.NET Identity membership system
ASP.NET MVC Web Application內建會員系統
1.建立專案時選擇ASP.NET Web Application(.NET Framework) Visual C#
2.範本選擇MVC,Authentication認證選擇Individual User Accounts個別使用者帳戶
3.建置並開始偵錯,首頁右上角就會有[註冊]與[登入]兩個功能,點選註冊
填入email做為帳號,輸入密碼,點擊[註冊]按鈕就會成功註冊成會員
4.會員資料預設存放在Visual Studio 2017內建的SQL Server Express LocalDB(輕量版SQL Express)
SQL Server Express LocalDB is a lightweight version of Express that has all of its programmability features, runs in user mode and has a fast, zero-configuration installation and a short list of prerequisites
在AspNetUsers資料表右鍵,選擇檢視資料,即可看到剛新增的會員資料
資料庫檔案預設位置
C:\Users\UserName\source\repos\WebApp1\WebApp1\App_Data\aspnet-WebApp1-20190706124408.mdf
SQL Express LocalDb Instance位置
Reference:
Create a secure ASP.NET MVC 5 web app with log in, email confirmation and password reset (C#)
訂閱:
張貼留言 (Atom)
SQL Server Database Mirroring 資料庫鏡像
SQL Server Database Mirroring 資料庫鏡像
-
1.安裝了Oracle Client,就可以用Oracle Net Manager工具來設定TNS連線設定(Tnsnames.ora) Oracle Client 18.3 Installation 安裝Oracle Client 18.3 2.啟動Oracle Ne...
-
1.下載 Oracle Database 18c (18.3) https://www.oracle.com/technetwork/database/enterprise-edition/downloads/oracle18c-windows-180000-5066774.ht...
-
ASP.NET MVC Web App啟用SSL (Https連線) 1.在Web專案屬性 (1)將SSL已啟用改為True (2)複製或記下SSL URL路徑 2.Web專案屬性視窗,將專案URL改成上一個步驟複製的SSL URL路徑 3.在需要使用Https的Contro...
沒有留言:
張貼留言