Repository Pattern in ASP.NET

Reference: https://www.asp.net/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application The Repository and Unit of Work Patterns The repository and unit of work patterns are intended to create an abstraction layer between the data access layer and the business logic layer of an application. Implementing these patterns can help insulate your application from changes in the data store and can facilitate automated unit testing …

Read More

The Usage of Ninject

Reference: By Adam Freeman – Pro ASP .NET MVC 4 4th Edition As has mentioned in the previous post, the idea of dependency injection is to decouple the components in our MVC applications. Here is the example that we will explain how to use the Dependency Injection Container–Ninject. The problem Our simple example project relies on tightly-coupled classes: the ShoppingCart class …

Read More

Dependency Injection in ASP.NET

Reference: By Adam Freeman – Pro ASP .NET MVC 4 4th Edition One of most important features of the MVC pattern is that it enables separation of concerns. We want the components in our application to be as independent as possible and to have as few interdependencies as we can manage. In ideal situation, each component knows nothing about …

Read More

First Taste of Xamarin – Andriod and iOS App in C#

Reference: https://www.visualstudio.com/xamarin/ Xamarin is a Microsoft-owned San Francisco, California-based software company founded in May 2011 by the engineers that created Mono, Mono for Android and MonoTouch, which are cross-platform implementations of the Common Language Infrastructure (CLI) and Common Language Specifications (often called Microsoft .NET). With a C#-shared codebase, developers can use Xamarin tools to write native Android, iOS, …

Read More

A Small Looking Up Program

I make a small looking up program these day for a test. We input a source word, then the program can look up the words that have four consecutive letters (or more) in common with the “source” word. For example, the word MATTER has the four letters in a row “ATTE” in common with ATTEND. So we input ATTEND, …

Read More