Deploy dotnet core on ubuntu

# Add Microsoft keys wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb sudo dpkg -i packages-microsoft-prod.deb # Removing Apache2 and install Nginx instead sudo apt-get remove –purge apache2 apache2-utils sudo rm -rf /etc/apache2 sudo add-apt-repository ppa:nginx/stable # Start installing sudo apt-get install apt-transport-https sudo apt-get update sudo apt-get install python-software-properties sudo apt-get install nginx sudo apt-get install dotnet-sdk-2.2 # Configure Nginx sudo service nginx […]

Install MS SQL Server on ubuntu

sudo apt-get install -y software-properties-common wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add – sudo add-apt-repository “$(wget -qO- https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2017.list)” sudo apt-get update sudo apt-get install -y mssql-server sudo /opt/mssql/bin/mssql-conf setup For More info : https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017

C# Performance Tips

Check List has items List.Count() vs List.Any() Stopwatch watch = new Stopwatch(); List < string > strs = new List < string > () { “Akshay”, “Patel”, “Panth”, “Patel” }; watch.Start(); if (strs.Count() > 0) {} Console.WriteLine(“List.Count()-{0}”, watch.Elapsed); ——– watch.Restart(); if (strs.Any()) {} Console.WriteLine(“List.Any() – {0}”, watch.Elapsed);   Loop on items in a list Array.Length vs var i […]

Entity Signal – Real Time Entity Framework (EF) and ASP.NET core

What is Entity Signal? Entity Signal allows you to connect to Entity Framework through SignalR and get updates on subscribed data in real time. This lowers the number of refreshes done by the user and ultimately allows you to do more with fewer servers. It is also requires minimal changes, so you can make realtime apps about as […]