Tag: C#

  • Npgsql 8.0, Entity Framework Core and JSON POCOs

    Npgsql 8.0 introduced NativeAOT and trimming support (hooray!), which necessitated explicit opt-ins to some dynamic coding practices that are incompatible with NativeAOT/trimming. One of these is JSON POCO mapping which I use quite heavily in some of my projects (boo! hiss!) As mentioned, though, it is opt-in via NpgsqlDataSourceBuilder introduced in Npgsql 7.0 or the…

  • Email in Castle Monorail 2.0

    Castle Monorail has been my web framework of choice for some years now. I’ve been using the obsolete RenderEmailAndSend method as that was how it is done in the sample code. Monorail 2.0 uses Core 1.2 which features an integrated email sender component, and the old sample code does not work any more since Castle.Components.Common.EmailSender.Message…