• RSCG_DBContext–execution – part 2 of 3

    Some problems that should be solved: 1 How to know that the user opted for this generation ? Of course , with an attribute – I named mine GenerateDbContextExistsAttribute ( consequence: The problem of multiple assemblies sharing same attribute is solved –  see Andrew Lock https://andrewlock.net/exploring-dotnet-10-preview-features-4-solving-the-source-generator-marker-attribute-problem-in-dotnet-10/ ) 2. The generation of function : the function…

  • RSCG_DbContext- idea –part 1 of 3

    The  DBContext from Entity Framework has a method on Database property , named :EnsureCreated ( and one EnsureCreatedAsync) The problem with that is that verifies JUST the name of the database – not the tables exposed in the DBSet . So how  to do this kind of stuff – verify that the tables for a…

  • Friday links 583

    CharlieDigital/dn8-modular-monolith: A practical example of how to build modular monoliths (“momo”) with .NET 8 baranacikgoz/modular-monolith-ddd-vsa-webapi: A .NET 10 Webapi boilerplate with Modular Monolith approach, Domain-Driven Design and Vertical Slices architecture along with Clean Architecture principles per feature. Changing how ASP.NET generates OpenAPI schema names Poor Deming never stood a chance – Surfing Complexity bradygaster/squad: Squad:…

  • RSCG – AOP.Logging.SourceGenerator

    RSCG – AOP.Logging.SourceGenerator     name AOP.Logging.SourceGenerator nuget https://www.nuget.org/packages/AOP.Logging.SourceGenerator/ link https://github.com/dborgards/aop.logging.net author Dietmar Borgards Logging methods by generating new ones   This is how you can use AOP.Logging.SourceGenerator . The code that you start with is The code that you will use is   The code that is generated is Code and pdf at https://ignatandrei.github.io/RSCG_Examples/v2/docs/AOP.Logging.SourceGenerator

  • RSCG – Najlot.Map.SourceGenerator

    RSCG – Najlot.Map.SourceGenerator     name Najlot.Map.SourceGenerator nuget https://www.nuget.org/packages/Najlot.Map.SourceGenerator/ link https://github.com/najlot/Map author Najlot Generates object mapping code at compile time using source generators   This is how you can use Najlot.Map.SourceGenerator . The code that you start with is The code that you will use is   The code that is generated is Code and…

  • [ADCES} DuckDB & AI & Cum ne ajuta AI cu exemple

    Azi , marti, ora 19:30 Presentation 1 ; DuckDB & AI – introducere cu exemple practice Prezentator : Radu Iovescu, https://www.linkedin.com/in/riovescu/ Presentation 2 : Cum ne ajuta AI – exemple practice Prezentator : Toata lumea Descriere : Discutie libera despre AI -incecam doar lucruri bune https://meet.google.com/ejg-asyh-dqb

  • RSCG – TrimItEasy

    RSCG – TrimItEasy     name TrimItEasy nuget https://www.nuget.org/packages/TrimItEasy/ link https://github.com/phongnguyend/TrimItEasy author Phong Nguyen trimming eacg string from a class properties   This is how you can use TrimItEasy . The code that you start with is The code that you will use is   The code that is generated is // #nullable enable using…

  • Friday links 582

    SVG favicons that respect theme preference | pawelgrzybek.com Basic Usage Detail · Where craft lives Claude picks the first idea that works. Make it pick the best one. | PhotoStructure bharath31/agent-404 Wirth’s Revenge Fun with TypeScript Generics – Frontend Masters Blog nmrugg/stockfish.js: The Stockfish chess engine for web browsers microsoft/data-formulator: Create rich visualizations with AI…

  • Database Independence–using TestContainers

    Test without Database installing – I use Testcontainers For SQL Server, PostgreSQL, and MongoDB, I use Testcontainers to run the database engines in disposable Docker containers during the integration tests. This lets me test the real EF Core providers instead of replacing them with mocks or an in-memory database. The test project references the provider-specific…

  • VaRe&DaIn–part 060 of n–OptionsBuilder

    Now I want to create the database in each provider (Sqlite, MsSql, Postgresql, Mongo) Let’s say that I have the database context public partial class EmpContext : DbContext { public EmpContext() { } public EmpContext(DbContextOptions<EmpContext> options) : base(options) { } public virtual DbSet<Department> Department { get; set; } public virtual DbSet<Employee> Employee { get; set;…

I am ok , you are ok