Legion Developers

Sharing Knowledge

.net

Execute ef-core migrations with different settings

Hi guys, now I want to share how to execute ef-core migrations with different appsettings.json files, to change the string connection to execute migrations according to the environment. Supposing that you have different string connections for each environment that you have, for example: development, staging, production; you could have three appsettings. appsettings.development.json appsettings.staging.json appsettings.production.json If […]

Consume SOAP services with HttpClient in .NET

Consume SOAP service with HttpClient in .NET doesn’t have to be hard. In recent days I need to consume some soap services in .NET 6, and I need to review some concepts about SOAP services in C#. After doing some research I found some examples using HttpWebRequest, but this class is marked as obsolete in .NET […]

How To Make an API with Azure Functions and OpenAPI Support

Hi guys, in this occasion I want to share how to create an API with azure functions to expose it as serverless functions. The current version for visual studio at writing this post is 2022, so the next pictures are from that version. The first step is create the azure function project in visual studio, […]

Scroll to top