My name is Marcin and I'm a .NET developer π¨βπ» focused on back-ends π» and Azure βοΈ infrastructure.
marcin-burak
Follow
.NET π¨βπ» | Azure βοΈ
- Poland, ToruΕ
-
16:36
(UTC +01:00) - in/marcin-burak
- @marcin_burak
Pinned Loading
-
Common .NET project checklist.
Common .NET project checklist. 1# Check list
23- Folder structure
4- Horizontal slices for libraries, layer folders
5- Vertical slices for applications, feature folders
-
MSBuild project setup
MSBuild project setup 1<Project>
2<PropertyGroup>
3<TargetFramework>net8.0</TargetFramework>
4<ImplicitUsings>enable</ImplicitUsings>
5<Nullable>enable</Nullable>
-
Minimal SQL Server docker compose
Minimal SQL Server docker compose 1version: '3.4'
23services:
4web:
5image: ${DOCKER_REGISTRY-}<PROJECT>
-
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" />
-
ASP.NET options startup validation w...
ASP.NET options startup validation with FluentValidation 1public static class OptionsBuilderFluentValidationExtensions
2{
3public static OptionsBuilder<TOptions> ValidateWithFluentValidation<TOptions>(this OptionsBuilder<TOptions> optionsBuilder) where TOptions : class
4{
5optionsBuilder.Services.AddSingleton<IValidateOptions<TOptions>>(serviceProvider =>
-
Entity Framework database initializa...
Entity Framework database initialization on ASP.NET startup 1public sealed class DatabaseInitialization(IOptionsSnapshot<SqlServerOptions> sqlServerOptions, IWebHostEnvironment environment, DatabaseContext databaseContext)
2{
3private readonly IOptionsSnapshot<SqlServerOptions> _sqlServerOptions = sqlServerOptions;
4private readonly IWebHostEnvironment _environment = environment;
5private readonly DatabaseContext _databaseContext = databaseContext;
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.