Category Archives: C#

C# language

How to start using Entity Framework 6 with MySQL databases

To start using Entity Framework 6 and Visual Studio 2013 is necessary to install MySQL for Visual Studio 1.1.1 Beta and MySQL Connector/Net 6.8.1 Beta MySQL for Visual Studio 1.1.1 Beta can be downloaded with the following link: https://cdn.mysql.com/Downloads/MySQLInstaller/mysql-visualstudio-plugin-1.1.1.msi MySQL … Continue reading

Posted in ASP.NET MVC, C#, Problem solving, Programming, Uncategorized | Leave a comment

Build query string for System.Net.HttpClient get

From https://stackoverflow.com/questions/17096201/build-query-string-for-system-net-httpclient-get var query = HttpUtility.ParseQueryString(string.Empty); query[“foo”] = “bar<>&-baz”; query[“bar”] = “bazinga”; string queryString = query.ToString(); will give you the expected result: foo=bar%3c%3e%26-baz&bar=bazinga You might also find the UriBuilder class useful: var builder = new UriBuilder(“http://example.com&#8221;); builder.Port = -1; var query = … Continue reading

Posted in ASP.NET MVC, C#, Problem solving, Programming, Uncategorized | Leave a comment

Value cannot be null. Parameter name: source

Resolved with the following solution 1)Right click on the edmx file, select Open with, XML editor 2)Locate the entity in the edmx:StorageModels element 3) Remove the DefiningQuery entirely 4) Rename the store:Schema=”dbo” to Schema=”dbo” (if exists) 5)Remove the store:Name property … Continue reading

Posted in ASP.NET MVC, C#, Problem solving, Programming, Uncategorized | Leave a comment

3 ways to communicate between Angular components

Src: https://medium.com/dailyjs/3-ways-to-communicate-between-angular-components-a1e3f3304ecb How to communicate between components? This is the topic I’ve seen many new Angular developers to struggle with. I will show you the three most common approaches, with examples that fits different use cases. There is also the “redux … Continue reading

Posted in ASP.NET MVC, C#, Knowledge, Problem solving, Programming, Uncategorized | Leave a comment

How to Troubleshoot IIS Worker Process (w3wp) High CPU Usage

Source https://stackify.com/w3wp-high-cpu-usage/ Having IIS performance problems? Do you have w3wp.exe high CPU usage? In this article, we will discuss some tips to identify what is causing high CPU usage for your ASP.NET web applications. There are a lot of reasons that your … Continue reading

Posted in ASP.NET MVC, C#, Knowledge, Problem solving, Programming, Software architecture, Uncategorized | Leave a comment

HTTP vs Websockets: A performance comparison

Source: https://blog.feathersjs.com/http-vs-websockets-a-performance-comparison-da2533f13a77 In many web applications, websockets are used to push messages to a client for real-time updates. One of the more interesting and often overlooked features is that most websocket libraries also support directly responding to websocket messages from a … Continue reading

Posted in C#, Integration, Knowledge, Problem solving, Programming, Uncategorized | Leave a comment

Low latency html5 WebSocket Server to stream live and computed data to web browser grid (a flavor of SignalR)

From https://www.codeproject.com/Articles/890092/Low-latency-html-WebSocket-Server-to-stream-live-a   Introduction Live updates to browser is an important scenario in today’s world.  All businesses (Banking, Trading, Healthcare, Retail etc..) rely heavily on internet/browser based apps to reach their esteemed customers.  Be it stock quote, news, mail – live … Continue reading

Posted in ASP.NET MVC, C#, Knowledge, Problem solving, Uncategorized | Leave a comment