From 7540d4437f276c10968838c7b8c04a914c435d10 Mon Sep 17 00:00:00 2001 From: Dominic Villemure Date: Wed, 27 Mar 2024 23:53:56 -0400 Subject: [PATCH] Added info in readme and a new redirect --- README.md | 12 ++++++++++++ src/Infrastructure/Stripe/StripeService.cs | 3 +-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3c9281a..e923dc0 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,18 @@ docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=' -p 1433:1433 Set your password in an env var for the connection string. Windows : $Env:DB_PASSWORD = "YourPassword" +## Entity Framework + +Create a new migration : +``` +./Ef.ps1 migrations add NomDeLaMigration +``` + +Update database : +``` +./Ef.ps1 database update +``` + ## Build Run `dotnet build -tl` to build the solution. diff --git a/src/Infrastructure/Stripe/StripeService.cs b/src/Infrastructure/Stripe/StripeService.cs index dc18c62..3cfb7ff 100644 --- a/src/Infrastructure/Stripe/StripeService.cs +++ b/src/Infrastructure/Stripe/StripeService.cs @@ -2,7 +2,6 @@ using Stripe; using Stripe.Checkout; using Hutopy.Application.Common.Interfaces; - namespace Hutopy.Infrastructure.Stripe; public class StripeService : IStripeService @@ -35,7 +34,7 @@ public class StripeService : IStripeService }, Mode = "payment", UiMode = "embedded", - ReturnUrl = "http://localhost:5174", + ReturnUrl = $"http://localhost:5173/creatorfolio", }; var service = new SessionService();