Failed Unit Tests fixed in .NET Microservices Sample Reference Application eShopOnContainers

Running the unit tests of Microsoft’s .NET Microservices Sample Reference Application eShopOnContainers, some of them failed. I’m happy I was able to contribute to the project by fixing the root cause of the failure of the tests MarketingScenarios.Set_new_user_location_and_get_location_campaign_by_user_id and IntegrationEventsScenarios.Post_update_product_price_and_catalog_and_basket_list_modified. See the corresponding issues #1403 and #1404 on GitHub for …

First Pull Request for Microsoft’s Microservices Sample Reference Application eShopOnContainers merged

Having Microsoft’s .NET Microservices Sample Reference Application eShopOnContainers started the first time on my local machine, I was not able to login. Looking at the already reported issues, I noticed that this was a known error. Also, the solution was known. Back in 2018, it was reported on GitHib that …

Disable Entity Framework Code First Initialization Logic

When you use the Entity Framework Code First approach to build your database, EF’s default behavior is to verify if a database exists when the application runs the first time. In case it does not exist, EF creates it. There might exist some situations when there is no need to …

Handle Race Conditions / Concurrency in Code First Entity Framework Applications

Preface A common scenario in developing applications is the handling of concurrent database updates. Given there is an application to manage customers, that is used by multiple users simultaneous. User U1 reads the data of customer C1. While user U1 is looking at this data, user U2 reads the data …

Paging Made Easy with ASP.NET MVC 5, Entity Framework 6 and PageList.Mvc

Preface In former days, implementing paging sometimes took a little bit of time. That was independent from the used platform, native Windows Client or Web or whatever. Fortunately, that was then and this is now. Implementing paging in an ASP.NET MVC 5 Entity Framework 6 application really became simple. Just …

Handle Deactivated JavaScript in ASP.NET MVC Web Application

Preface Depending on what your ASP.NET MVC Web application is supposed to do, it might be necessary that the client’s browser has JavaScript support enabled. If this is not the case, maybe you want to make sure the user will be informed and cannot use the application. And because there …

Create a 1:1 Table Relationship using Entity Framework

Preface My database roots are pure SQL. When I create a database, I use an Excel sheet for documentation purposes, which creates SQL statements to build up the tables. Table relationships (parent / child) with foreign keys I do define by hand, like the good old craftsmen do. It’s simple …

“Device Not Functioning” Exception on Invalid PrimaryLanguageOverride Value in Windows Store Apps

Oh, what a title for a post. The correct title is “‘A device attached to the system is not functioning. (Exception from HRESULT: 0x8007001F)’ Exception Occurs When Showing A TextBox and ApplicationLanguages.PrimaryLanguageOverride Is Set To An Invalid Value in Windows Store Apps on Windows 8.1“. Symptom Building the Factory Commander, …

Use Publicize.exe to Create Private Accessors for Visual Studio 2012+

Preface Starting with Visual Studio 2012, private accessors cannot be created any more by the IDE. The post Home-made Private Accessor for Visual Studio 2012+ presents an approach on how to create private accessors using the class Microsoft.VisualStudio.TestTools.UnitTesting.PrivateObject. Axel Mayer noted in the MSDN forums post How to create private …