Latest Articles

Entity Framework Composite Primary Key

Sunday, 29 March 2015 00:00 Written by
Entity Framework Composite Primary Key Entity Framework composite primary keys could be tricky to handle. Although I recommend avoid such conditions ,both defining the keys and referencing that Class in another class are discussed in this tutorial. Let’s consider an example, my favorite Hotel case, where you have three classes:…

Entity Framework update entity | Entity relation

Friday, 27 March 2015 00:00 Written by
Entity Framework update entity | Entity relation You may have run to errors While update or add an entity in Entity Framework like this one: “The operation failed: The relationship could not be changed because one or more of the foreign-key properties is non-nullable. When a change is made to…

Unit testing c#

Saturday, 27 December 2014 00:00 Written by
Unit testing c# In my Unit Testing article I talked about Unit Testing, in this article I’m going to talk about bits and bobs of Unit Testing in C# | Unit Testing .Net . In this article we use Visual Studio Unit Testing or precisely Microsoft.VisualStudio.TestTools. UnitTesting package. My concentration…

Retrieve saved Entity Id

Saturday, 27 December 2014 00:00 Written by
Retrieve saved Entity Id Either you’re saving an entity and then want to reference its primary-key or you want to use the Id to give a tracking number to the user you need the entity’s ID after it is being saved. This case happens when you set the “DatabaseGeneratedOption.Identity” attribute…

Popular Articles

Parameter passing between different Actions There are a lot of…
MVC ActionResult In ASP.NET MVC ViewResult, JsonResult and JavaScriptResult are…
Unit testing c# In my Unit Testing article I talked…
.Net developers have no doubt that knowledge of writing complicated…

Entity Framework migration | Entity Framework code first migration

Saturday, 27 December 2014 00:00 Written by
Entity Framework code first migration Migration is one of the key features of Entity Framework and you strongly need it when you’re developing in “Code-First” style which is my favorite. From time to time however, it may irritate you by throwing exceptions. Initial configuration Install Entity Framework Issue Enable-Migration command…

How to create nested layouts or templates in ASP.NET MVC Razor?

Saturday, 27 December 2014 00:00 Written by
How to implement MVC master page and nested master pages In this article I am going to teach the development of nested MVC master pages and the usage of section for dynamic locations in MVC Razor view. Appropriate usage of these two features can buy you a lot of time…

Editor templates: Tricks to build complex UI controls in ASP.NET MVC

Saturday, 27 December 2014 00:00 Written by
Editor templates: Tricks to build complex UI controls in ASP.NET MVC ASP.Net MVC editor templates are a key for fast development. In ASP.NET you have any UI controls you need and a Drag-and-Drop does the magic and generates the Html codes for you. In contrast ASP.Net MVC requires writing the…

MVC download file

Saturday, 27 December 2014 00:00 Written by
MVC download file Return value of Controller’s Actions in ASP.NET MVC should be of Action Result type but this doesn’t mean you always should return a View. You may return a file to be downloaded and the file type could be anything e.g. png, mp3, exe and etc. Every extension…
Advanced Programming Concepts
News Letter

Subscribe our Email News Letter to get Instant Update at anytime