How to show logging in karma jasmine unit tests.

0 Comments

  In Karma v5.0.9 server the “console.log” statements, inside the spec tests as well as in your web application code, are logged to the terminal running the karma server by default. If you want to

2020-08-27 Learned Today

0 Comments

  How to use the PlayStation 4 – Dual Shock 4 controller on a Windows 10 laptop by using the built-in default Bluetooth receiver with Fortnite The battle between Apple and Epic games let too

2020-08-20 Learned Today

0 Comments

  Get server information in PowerShell, by using its ip address.   [System.Net.Dns]::GetHostByAddress(“10.200.110.250”) < p style=”background: #1e1e1e”>nbtstat -A 10.200.110.250

Data flows and good DDD architecture in .NET Core and Entity Framework (EF)

0 Comments

      # Introduction From the blog post at https://medium.com/@jpdeffo/domain-driven-design-ddd-in-microservice-architecture-for-nutshell-19c7c579009a and code at https://github.com/Defcoq/DDD  I have learned how to architect a .NET Core project by using DDD principals. The main thing you will have to realize, when you come from a layered architecture, is that the logical flow of data, does not correspond with the project references in Visual Studio.              # Logical dataflow     Controllers (MyApp.Web.csproj) => Domain Services (MyApp.Domain.csproj) => Persistence services (MyApp.Persistence.csproj)            Controller data flows     – On a HTTP GET a .NET controller will,       OPTIONAL – Receive primitive types or data transfer objects (DTO) from the client       OPTIONAL – Map data transfer objects (DTO) to domain models       Call domain service(s) by using DI       Receive domain models       Map domain models to data transfer objects (DTO)       Return data transfer objects (DTO) to the client.     – On a HTTP POST a .NET controller will,       OPTIONAL – Receive primitive types or data transfer objects (DTO) from the client       OPTIONAL – Map data transfer objects (DTO) to domain models       Call domain service(s) by using DI       OPTIONAL – Receive domain models       OPTIONAL – Map domain models to data transfer objects (DTO)       OPTIONAL – Return data transfer objects (DTO) to the client.            Domain Service data flows     – Receive primitive types or domain models     – Act on domain models     – OPTIONAL – Call persistence services with primitive types or domain models, by using DI     – OPTIONAL – Receive primitive types or domain models

2020-08-13 Learned Today

0 Comments

  How to correctly add a foreign key in sql server When you script a table that has a foreign key, SQL Server Management studio will generate the following code: https://stackoverflow.com/questions/529941/with-check-add-constraint-followed-by-check-constraint-vs-add-constraint   ALTER TABLE [Production].[ProductCostHistory]