Category: .NET

  • RSCG Example – Tiny Types – Part 23

        name BaseTypes nuget https://www.nuget.org/packages/AndreasDorfer.BaseTypes/ link https://github.com/Andreas-Dorfer/base-types author Andreas Dorfer Generated tiny types from any value type   The code that you start with is The code that you will use is   The code that is generated is Example Code: https://github.com/ignatandrei/RSCG_Examples/tree/main/TinyTypes

  • RecordVisitors- BDD–part 9

    It is recommended to have tests. And better is to  see the output of the tests in some readable format . On other hand,I do not like full BDD   frameworks as SpecFlow – I think that are too overkill in order to achieve less. So – something like https://github.com/LightBDD/LightBDD seems to fit the bill. After…

  • AutoActions for Skinny controllers–custom template

    Now I want to let the user make his own template. For this,I have enriched the attribute AutoActionsAttribute with a public string CustomTemplateFileName { get; set; }   The code was pretty easy,just reading from GeneratorExecutionContext . AdditionalFiles instead of reading from the template in the dll     There are 2 small catches 1…

  • [ADCES] Presentation about .NET 5

    My presentation were about EFCore,RoslynGenerators,Breaking Changes and ClickOnce. Code and presentation at https://ignatandrei.github.io/Presentations/NET5prez.html . Next presentation will be https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/events/274737653/

  • [ADCES].NET 5 What’s new and awesome

    Daniel Costea,Andrei Ignat si Dan Patrascu-Baba si o sa faca demo practice despre 1. C# – What’s new 2. ASP.NET Core – What’s new 3. EF Core – What’s new 4. Auto-Update de aplicatii Asp.NET Core si WPF prin ClickOnce 5. Roslyn Generators pentru code 6. Breaking changes 7 What’s new in Blazor on .NET…

  • SideCarCLI–looking at past and at future

    It was interesting to develop the project for command line same as for cloud design pattern,https://docs.microsoft.com/en-us/azure/architecture/patterns/sidecar . The problem were more about architecture organizing features to be easy understandable ,testing the application writing about   rather than  technical,about how to make the application. Other,it was a pretty simple project,that can be useful in  CI /…

  • Fun with Moniker- naming assembly versions

    I liked the way docker generates names for every container instance – it was a funny way to differentiate them. I was thinking  – what about nuget packages – or any other release  ? I have discovered Moniker – https://github.com/alexmg/Moniker . Can be used as in docker – to generate different names at various runs.…

  • Exchange rates–what I have done in 37 hours–part 38

    What I have create for now in 37 hours : A source control – https://github.com/ignatandrei/InfoValutar A plugin based software – you can use to load any kind of exchange rates,for anywhere,provided that you implement the interface – see implementation Tests for some of the code Deployment: An Azure WebAPP  WebAPI deployment  – https://infovalutar.azurewebsites.net/swagger/index.html A Docker…

  • C# WebAPI and NotFound with message in MVC .NET 4.5

    Usually,WEBAPI should return correct HTML status code ( read also https://damienfremont.com/2017/11/23/rest-api-maturity-levels-from-0-to-5/ ) . Let’s say we are saving an entity  – the OK result could return a meaningful message. How about querying for an id that you cannot find ? Easy: NotFound :  .But –the NotFound does NOT show an message. How a client can make…

  • Use the right language for the job–if you know

    Many years ago I have done a site that lists the exchange rates from BNR and BCE ( www.infovalutar.ro ). It reads the exchanges from BNR html page and then put into a database. The use is for programmers – there are many methods to find latest exchange rates ( RSS,SOAP,url,by MVC,JSON… –  see  all…