New Year Wishes from CodeSpread Team

Welcome to CodeSpread! CodeSpread Team is enjoying, partying and wishing a very happy new year to all of our users,readers and...

Read More
C# – Box(ing) and Un-box(ing)
Dec31

C# – Box(ing) and Un-box(ing)

I have heard this concept from many people and their different versions so I always wanted to share some insight on it which can work as a one stop solution. What is boxing and un-boxing? The Conversion of a value type into reference type is boxing and the reverse process is un-boxing. What is Value Type? Value Types in C# are the primitive data types such as Boolean, char,numeric, enum and structures. Note: The value types are stored...

Read More
Freeze Business Logic Layer.
Dec30

Freeze Business Logic Layer.

We regularly work on three-layer architecture for application development and always use some standard data layer and UI layer guidelines for design but what we always ignore is business logic layer. The reason behind maybe we are not comfortable in designing something which has no limits and no boundaries defined. If I share my experience; whenever we have tried to freeze our business logic, ironically, we felt a need to extend it to...

Read More
Try one ORM: Entity Framework
Dec30

Try one ORM: Entity Framework

As promised in the last article, We are going to share our experience of Entity Framework Ver 4.1. First of all, we have to add and configure Entity Framework in visual studio. We are going to use “NuGet” manager. Steps to check whether “NuGet” manager is already installed. 1)Open Visual Studio 2010, Go to Tools menu and click on Library Package Manager. If NuGet is not installed,Follow the below steps to install it through Extension...

Read More
Magic Wand: Object-relational mapping
Dec29

Magic Wand: Object-relational mapping

As a developer, we are always looking for reusable components which can ease our life and I can suggest ORM as the developer’s magic wand because it wipes off the overhead of dealing directly with the database and encourages OOP way of data  operations. What is Object-relational mapping? Wikipedia says “Object-relational mapping (ORM, O/RM, and O/R mapping) in computer software is a programming technique for converting data...

Read More
Page 1 of 10123456...Last »