Browsed by
Category: .Net

Installing and Configuring Web Deploy on IIS 8.0 or Later

Installing and Configuring Web Deploy on IIS 8.0 or Later

Download the Web Platform Installer. Open Web PI. Select the Web Deploy that you want, and then click Add. On the Prerequisites page, click I accept. After the installation has completed, click Finish.   Using the IIS Manager to configure Web Deploy for a Non-Administrator The following steps configure publishing on an existing site for an existing user using the IIS Manager UI. Start IIS Manager (open Server Manager, click Tools, and then open IIS Manager. Expand the Sites node and click a site. In the Management area of the site’s home pane,…

Read More Read More

ASP.NET MVC 5: Using a Simple Repository Pattern for Performing Database Operations

ASP.NET MVC 5: Using a Simple Repository Pattern for Performing Database Operations

Abstract: The Repository pattern decouples your ASP.NET MVC application and shields it from changes by creating a boundary between your data access code and the other parts of your application. Recently a client of mine asked for a solution to isolate the direct dependency of the Data Access Layer with the rest of the layers of the application. In this article we will discuss one of the concepts I suggested to him for an ASP.NET MVC application. Typically in multi-layer applications,…

Read More Read More

How to Implement the Repository Pattern in ASP.NET MVC Application

How to Implement the Repository Pattern in ASP.NET MVC Application

The Repository Pattern is one of the most popular patterns to create an enterprise level application. It restricts us to work directly with the data in the application and creates new layers for database operations, business logic, and the application’s UI. If an application does not follow the Repository Pattern, it may have the following problems: Duplicate database operations codes Need of UI to unit test database operations and business logic Need of External dependencies to unit test business logic…

Read More Read More

async/await – What You Should Know

async/await – What You Should Know

Introduction Sometimes, we use new technologies while we are not aware of the bottlenecks and weird parts of that technology which eventually might trap us in bad situations like deadlocks which may be really hard to track. What exactly happens in Task-based Asynchronous Pattern (TAP), what are the improvements since .NET 4.0, how may we introduce a deadlock and how to prevent it? Consider somewhere in your code, you need to do something asynchronous, what are the different ways to do…

Read More Read More

Stackify Prefix

Stackify Prefix

What is Prefix? Prefix is free lightweight profiler for .NET & Java developers. It runs on their workstation and gives them details about what their code is doing while creating or testing their apps. I always described Prefix as the world’s best log viewer for developers. By ASP.NET web request you can see all your log statements plus many other details. For example, it can show you how long a request takes, what SQL queries were executed, HTTP calls, exceptions and…

Read More Read More

Dotnet-Boxed Very good asp.net template

Dotnet-Boxed Very good asp.net template

.NET project templates with batteries included, providing the minimum amount of code required to get you going faster. https://github.com/Dotnet-Boxed/Templates Technology Map The ASP.NET Core API project template contains the following features: Optional Feature Selection The ASP.NET Core API project template uses dotnet new to enable you to turn features of the project template on or off. Literally everything can be turned on or off with the click of a button for a truly personalized project. Find out more about dotnet new here. API Swagger (Default=On)…

Read More Read More

What is the Difference Between a DTO and a POCO?

What is the Difference Between a DTO and a POCO?

First off, I’m not the authority on DTOs, POCOs, object oriented architecture, or really anything now that I stop to think about it.  However, I do use a DTO / POCO centric architecture whenever I can and there’s at least one former client of mine who is now saddled with an entity class named DevicePoco (there was already a Device entity object that followed the Active Record pattern, otherwise I would never have named an object XXXPoco). When my client…

Read More Read More

Comparison of databases for UWP apps: SQLite, Realm & LiteDB

Comparison of databases for UWP apps: SQLite, Realm & LiteDB

Object oriented ap­pli­ca­tions usu­ally needs ob­ject ori­ented stor­age. Re­la­tions are good at map­ping poin­t­ers but many tech­ni­cal lim­i­ta­tions are hid­den un­der doc­u­men­ta­tion crust. It is not easy to choose the right database tech­nol­ogy be­cause pros are writ­ten ev­ery­where and cons are spread across many GitHub is­sues. It is like buy­ing a new car. You know the price, power and fuel con­sump­tion but you must in­quire into re­li­a­bil­ity and main­te­nance costs. SQLite Im­pos­si­ble to re­name or re­move ex­ist­ing ta­ble col­umn. SQLite…

Read More Read More