This template is a simple startup project to start with ABP using ASP.NET Core and EntityFramework Core.
- Visual Studio 2017
- .NET Core SDK
- SQL Server
- Add-Migration -Name "TaobaoAuth_Init" -Context "TaobaoAuthorization.EntityFrameworkCore.TaobaoAuthorizationDbContext" -Project "TaobaoAuthorization.EntityFrameworkCore" -StartupProject "TaobaoAuthorization.Web"
- Remove-Migration -Context "TaobaoAuthorization.EntityFrameworkCore.TaobaoAuthorizationDbContext" -Project "TaobaoAuthorization.EntityFrameworkCore" -StartupProject "TaobaoAuthorization.Web"
- Update-Database -Context "TaobaoAuthorization.EntityFrameworkCore.TaobaoAuthorizationDbContext" -Project "TaobaoAuthorization.EntityFrameworkCore" -StartupProject "TaobaoAuthorization.Web"
- Script-Migration -Output D:\TaobaoAuth_Init.sql -Context "TaobaoAuthorization.EntityFrameworkCore.TaobaoAuthorizationDbContext" -Project "TaobaoAuthorization.EntityFrameworkCore" -StartupProject "TaobaoAuthorization.Web"
- get-help
Sql Server
INSERT INTO [dbo].[Partners]
([CreationTime]
,[PartnerKey]
,[SecretKey]
,[PartnerName]
,[IsDisabled])
VALUES
(GETDATE()
,'Partner001'
,'1234567890'
,'测试合作号'
,0)
Mysql
INSERT INTO `Partners`
(`CreationTime`
,`PartnerKey`
,`SecretKey`
,`PartnerName`
,`IsDisabled`)
VALUES
(now()
,'Partner001'
,'1234567890'
,'测试合作号'
,0)
- Open solution in Visual Studio 2017
- Set .Web project as Startup Project and build the project.
- Run the application.
- View
http://localhost:62114/Auth/Authorization?PartnerKey=Partner001&RequestTime=20181129145050&SignType=SHA1&AppKey=25297011&AuthState=12345678&SignData=123456&ForceReAuth=1