Category: projects
-
NetPackageAnalyzer–part 12-CyclomaticComplexity
The .NET Tool,https://www.nuget.org/packages/netpackageanalyzerconsole,can now analyze a solution and see the cyclomatic complexity. Cyclomatic Complexity for assembly,class,method The cyclomatic complexity of a section of code is the number of linearly independent paths through the code. It is a quantitative measure of the number of linearly independent paths through a program’s source code. The program is showing…
-
NetPackageAnalyzer–part 11–Building Blocks,Test Projects and Root Projects
The .NET Tool,https://www.nuget.org/packages/netpackageanalyzerconsole,can now analyze a solution and see the Building Blocks,Test Projects and Root Projects Building blocks Projects I define as Building blocks projects the projects that have no reference to other projects. If you are new to the solution,then you can start to those base projects – should be self contained and self…
-
NetPackageAnalyzer–part 10–commits per year and folder
The .NET Tool,https://www.nuget.org/packages/netpackageanalyzerconsole,can now analyze a solution and see the commits per year and folder
-
NetPackageAnalyzer–part 9- Radar
The .NET Tool,https://www.nuget.org/packages/netpackageanalyzerconsole,can now analyze a solution and see the different correlations of a project in a radar form This is what have been generated to itself Install from https://nuget.org/packages/netpackageanalyzerconsole
-
NetPackageAnalyzer–part 7-PublicClassesProject
Assemblies with number of public classes Assemblies with Public methods Classes with Public methods See https://ignatandrei.github.io/PackageAnalyzer/docs/Analysis/NetPackageAnalyzer/summaryPublicClasses
-
NetPackageAnalyzer- idea –part 1
I wanted to have a tool that can analyze a C# solution with all the dependencies ( project relations,packages,commits) It generates a graph of the dependencies for the packages of your solution ( and see when the major version of a package differs between projects) the projects of your solution. the project dependencies of each…
-
Comparing EFCore Database Providers part 3
I did not have the opportunity to migrate from a database from another . But seems to me that,when using EF,the principal problem will be the stored procedures,not the code that EF ( and providers) are generating automatically. Yes,there are some problems ( see part 1 and part 2),but those seems not so important and…
-
Comparing EFCore Database Providers-part-1
I wanted to see if there are any differences in EFCore database providers listed at https://learn.microsoft.com/en-us/ef/core/providers/?tabs=dotnet-core-cli I want to test the capabilities for each one within a standard choice of tables,in order to know the capabilities I choose only those that have a version for current STS / LTS,whatever it is current. ( I am…
-
NetCoreUsefullEndpoints-part 8- adding start date
In my NuGet NetCoreUsefullEndpoints package I have had already registered the actual date as var rh = route.MapGet(“api/usefull/dateUTC”,(HttpContext httpContext) => { return Results.Ok(DateTime.UtcNow); }); Now I want to register also the start date – the date where the application has been started. 1. How to do this ? 2. What will be the route ? For…
-
NetCoreUsefullEndpoints–part 7–restart application
In order to do the shutdown,I have added the following extension public static CancellationTokenSource cts=new (); public static void MapShutdown(this IEndpointRouteBuilder route,string? corsPolicy = null,string[]? authorization = null) { ArgumentNullException.ThrowIfNull(route); var rh = route.MapPost(“api/usefull/shutdown/”, (HttpContext httpContext) => { var h= cts.Token.GetHashCode(); cts?.Cancel(); return h; }); rh.AddDefault(corsPolicy,authorization); } This code defines a…