This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ExampleDbContext(DbContextOptions options) : base(options) | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public ExampleDbContext(DbContextOptions options) : base(options) | |
| { | |
| } | |
| public DbSet<Person> Persons { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using EFCoreSeparateProject.Core.Domain; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Metadata.Builders; | |
| namespace EFCoreSeparateProject.Infrastructure.EntityConfigurations | |
| { | |
| public class PersonConfiguration : IEntityTypeConfiguration<Person> | |
| { | |
| public void Configure(EntityTypeBuilder<Person> builder) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using EFCoreSeparateProject.Core.Domain; | |
| using EFCoreSeparateProject.Infrastructure.EntityConfigurations; | |
| using Microsoft.EntityFrameworkCore; | |
| namespace EFCoreSeparateProject.Infrastructure | |
| { | |
| public class ExampleDbContext : DbContext | |
| { | |
| public ExampleDbContext(DbContextOptions options) : base(options) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "SqlConnectionString": "Server=127.0.0.1,5433;Database=EFCoreSeparateProjectDb;User Id=sa;Password=yourStrong(!)Password;" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using EFCoreSeparateProject.Infrastructure; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Design; | |
| using Microsoft.Extensions.Configuration; | |
| using System.IO; | |
| namespace EFCoreSeparateProject.Migrations | |
| { | |
| public class ExampleDbContextFactory : IDesignTimeDbContextFactory<ExampleDbContext> | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ConnectionStrings": { | |
| "DbUpSqlConnectionString": "Server=127.0.0.1,1589;Database=sqldb-databasereleaseautomation;User Id=sa;Password=YourPassword123;" | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using DbUp; | |
| using Microsoft.Extensions.Configuration; | |
| using System; | |
| using System.Linq; | |
| using System.Reflection; | |
| namespace DatabaseReleaseAutomation.DbUpDemo | |
| { | |
| class Program | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static IWebDriver AzureAdRedirectWithAuthDetails(this IWebDriver driver, string userName, string password, string domainToReplace) | |
| { | |
| Thread.Sleep(TimeSpan.FromSeconds(5)); | |
| var newUrlWithUserCredentials = driver.Url.Replace(domainToReplace, $"{WebUtility.HtmlEncode(userName)}:{password}@{domainToReplace}"); | |
| driver.Navigate().GoToUrl(newUrlWithUserCredentials); | |
| return driver; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Cocona; | |
| using Microsoft.Playwright; | |
| using PlaywightAzureAdBasicAuth; | |
| var builder = CoconaApp.CreateBuilder(); | |
| var app = builder.Build(); | |
| app.AddCommand(async ([Argument(Description = "Username to login with")] string userName, | |
| [Argument(Description = "Password to login with")] string password, | |
| [Argument(Description = "The url of your application as a starting point where your login button is located")] string applicationUrl, |
OlderNewer