A Dependency Injection and Repository Pattern Example – II

(continuing) Service Layer Here is another layer that we put advanced CRUD operation in it. The service layer will make use of repository layer to operate on the database, as well as be used by the controller to process the data. Here also firstly we define the interface IRoleService: namespace Cobra.App.Infrastructure.Contracts { public interface IRoleService …

Read More

A Brief Summary of LINQ

LINQ is a very powerful tool in .NET Framework especially when operating Collection or Database (CRUD).  In Web Application development, we use it all the time for Database query. It’s important and we can hardly leave. Here is a brief summary of LINQ. Most of the contents are from the book MCSD Certification Toolkit (Exam 70-483). What is LINQ …

Read More