Skip to content
View marcin-burak's full-sized avatar

Block or report marcin-burak

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
marcin-burak/README.md

Hi there πŸ‘‹

My name is Marcin and I'm a .NET developer πŸ‘¨β€πŸ’» focused on back-ends πŸ’» and Azure ☁️ infrastructure.

Pinned Loading

  1. Common .NET project checklist. Common .NET project checklist.
    1
    # Check list
    2
     
    3
    - Folder structure
    4
    - Horizontal slices for libraries, layer folders
    5
    - Vertical slices for applications, feature folders
  2. MSBuild project setup MSBuild project setup
    1
    <Project>
    2
     <PropertyGroup>
    3
     <TargetFramework>net8.0</TargetFramework>
    4
     <ImplicitUsings>enable</ImplicitUsings>
    5
     <Nullable>enable</Nullable>
  3. Minimal SQL Server docker compose Minimal SQL Server docker compose
    1
    version: '3.4'
    2
     
    3
    services:
    4
     web:
    5
     image: ${DOCKER_REGISTRY-}<PROJECT>
  4. Hide server HTTP headers Hide server HTTP headers
    1
    <?xml version="1.0" encoding="utf-8"?>
    2
    <configuration>
    3
    <system.webServer>
    4
    <security>
    5
    <requestFiltering removeServerHeader="true" />
  5. ASP.NET options startup validation w... ASP.NET options startup validation with FluentValidation
    1
    public static class OptionsBuilderFluentValidationExtensions
    2
    {
    3
     public static OptionsBuilder<TOptions> ValidateWithFluentValidation<TOptions>(this OptionsBuilder<TOptions> optionsBuilder) where TOptions : class
    4
     {
    5
     optionsBuilder.Services.AddSingleton<IValidateOptions<TOptions>>(serviceProvider =>
  6. Entity Framework database initializa... Entity Framework database initialization on ASP.NET startup
    1
    public sealed class DatabaseInitialization(IOptionsSnapshot<SqlServerOptions> sqlServerOptions, IWebHostEnvironment environment, DatabaseContext databaseContext)
    2
    {
    3
     private readonly IOptionsSnapshot<SqlServerOptions> _sqlServerOptions = sqlServerOptions;
    4
     private readonly IWebHostEnvironment _environment = environment;
    5
     private readonly DatabaseContext _databaseContext = databaseContext;