K-MUG User Group Meeting On 20th December - Kochi
Kerala Microsoft User Group (K-MUG) is conducting monthly UG meeting on 20th December 2014, Kochi Venue: Startup Village, Kinfra Hi-Tech Park, Kalamassery, Kochi, Kerala. Agenda 02:00 - 02:10 Community updates 02:10 - 02:50 C# 6.0 - New Features by Anuraj P 02:50 - 03:30 Object/Relational Impedance Mismatch by Aravindan M...
Command line scaffolding for ASP.NET 5
Last K-MUG Session, there was a demo related to ASP.NET MVC scaffolding. This post is about scaffolding support in ASP.NET 5. This post uses K runtime for scaffolding, you can do it using Visual Studio 2015 Preview as well. Modify project.json, add “Microsoft.Framework.CodeGenerators.Mvc”: “1.0.0-*” under dependencies. Add “gen”: “Microsoft.Framework.CodeGeneration”, under...
How to use SQLite in ASP.NET 5
SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world. Most of the ASP.NET 5 tutorials / articles, SQL Server is used. In this post I am explaining about how to use SQLite...
Expression Bodied Functions and Properties in C# 6.0
Expression bodied functions are another syntax simplification in C# 6.0. These are functions with no statement body. Instead, you implement them with an expression, similar to Lamda expressions. class Calculator { public int Add(int a, int b) => a + b; public int Subtract(int a, int b) => a -...
Verify Internet connection is available using C#
While reviewing some code, I found a snippet for checking internet connection, like this private static bool IsConnectedtoInternet() { bool IsConnectedtoInternet; try { using (WebClient client = new WebClient()) { using (client.OpenRead("http://www.microsoft.com")) { IsConnectedtoInternet = true; } } } catch { IsConnectedtoInternet = false; } return IsConnectedtoInternet; } I found...
Dependency Injection in ASP.NET 5
Dependency injection is a software design pattern that implements inversion of control and allows a program design to follow the dependency inversion principle. An injection is the passing of a dependency (a service) to a dependent object (a client). The service is made part of the client’s state. Passing the...
New C# 6.0 features
As part of the Connect(); event, Microsoft introduced VS2015 Preview, which includes C# 6.0 with few more features. (These features are not included in my earlier post What is new in C# 6.0, as I already mentioned these features introduced by Microsoft in the Connect(); event few days back.) nameof...
First look into Visual Studio Community 2013
Yesterday Connect(); Event, Scott Guthrie and Soma Somasegar made a number of important announcements for the cloud-first, mobile-first developer. Visual Studio Community 2013 is a new free, fully-featured edition of Visual Studio that lets developers target any platform, from desktop and mobile to web and cloud. Visual Studio Community 2013...