IBIain Buchananinblog.buchanan.dev·Aug 4, 2022 · 1 min readSuper Simple .NET 6To create a blank .NET program, run the following: dotnet new console Random Numbers This is a stupidly simple .NET program for generating some crypto-random numbers using the operating system's entropy: Program.cs (the entire file is shown here, usi...00
IBIain Buchananinblog.buchanan.dev·Aug 4, 2022 · 4 min readEntity Framework scaffolding with AutofacScaffolding is a great way to build an app or microservice around an existing database. Instead of writing "code first" models to match an existing database, you can run dotnet ef dbcontext scaffold ... and get all your tables and views in seconds. T...00
IBIain Buchananinblog.buchanan.dev·Jul 20, 2022 · 2 min readDebugging Azure DevOpsA couple of quick ways of debugging your .NET DevOps pipeline that you may find useful: Task Parameters A handy debug idea is to look at the docs for the tasks in your pipeline, and add to their arguments to produce more verbose output. This has the ...00
IBIain Buchananinblog.buchanan.dev·Jul 19, 2022 · 1 min readSQL Injection is alive and wellAny mid-level+ developer should be aware of SQL injection, and any production web app written in the last few years should use some simple tools to avoid it. And yet I just found a .NET EF Core project, in production, using this: string keywordSearch...00
IBIain Buchananinblog.buchanan.dev·Jul 18, 2022 · 2 min readAzure Devops vs AWSThis is just a tiny post to publish an issue with Azure Devops. "Working yesterday, broken today". I never had the same headache in the couple of years I was doing CI/CD with AWS and GitHub. I have a yaml build pipeline which has been working for a c...00