Category: Aspire

  • Execute SqlServer scripts at startup – Aspire 9.1 vs Aspire 9.2

    One of the usual things in Software development is creating the database with all the tables,views,stored procedures and anything related . For Aspire 9.1 with Sql Ser,this involved a coordination between some shell scripts – see the code : The scripts where in the mount binding. Also,some .gitattributes files was required with to can execute…

  • Aspire 9.x add sql server database viewer

    .NET Aspire is a formidable tool to visualize your components and relation between them . Today I will show you how to add a custom visualizer for SqlServer database . The code for adding a database is pretty simple     The community extension,https://github.com/CommunityToolkit/Aspire,has already an extension,WithDBGate,that adds a viewer for the whole SqlServer .…

  • What I have learned by building .NET Stars -part 3- Aspire

    I have that same idea to build a project : is what is called today a Modular Monolith – and it is very old in .NET world as can be implemented as a .sln solution. For those unfamiliar,a Modular Monolith allows you to break down your application into independent modules (think database access,data flow logic,a…

  • Aspire Blazor WebAssembly and WebAPI

      Aspire is the new visualizer – see https://github.com/dotnet/aspire I am very fond of WebAPI  –  it allows for all people to see the functionality of a site,in a programmatic way ( side note:,my nuget package,https://www.nuget.org/packages/NetCore2Blockly,allows to make workflows from your WebAPI) And Blazor WebAssembly is a nice addition that the WebAPI . I am…

  • Aspire,containers and dotnet watch

    Aspire is the new visualizer – see https://github.com/dotnet/aspire If you use dotnet run ( or Visual Studio)  with an Aspire host that instantiate some containers ,then,when you stop the project,the container is released. But,if you use dotnet watch run –no–hot–reload then the containers are not  deleted. The nice solution is to investigate dotnet watch and Aspire…

  • Aspire,Sql Server Docker Container and multiple Connections strings

    Aspire is the new visualizer – see https://github.com/dotnet/aspire When creating a Docker container with Sql Server,the connection that is returned is without database – means that,usually,is connecting to the master. That’s not that we usually want,so the following code is means that WebAPI will be connected to master Instead,do what they do – but add…