Created Woodpecker CI/CD deployment
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Created Dockerfile for packing up API and Web projects as Docker image
This commit is contained in:
2023-03-27 21:48:25 -05:00
parent baf38aa3cd
commit 456b8ef75b
143 changed files with 30917 additions and 18248 deletions

View File

@ -0,0 +1,18 @@

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
namespace YABA.Data.Context
{
public class YABABaseContextFactory : IDesignTimeDbContextFactory<YABABaseContext>
{
public YABABaseContext CreateDbContext(string[] args)
{
var optionsBuilder = new DbContextOptionsBuilder<YABABaseContext>();
optionsBuilder.UseNpgsql(args[0])
.UseSnakeCaseNamingConvention()
.UseQueryTrackingBehavior(QueryTrackingBehavior.TrackAll);
return new YABABaseContext(optionsBuilder.Options);
}
}
}