Wednesday, January 28, 2015

Javascript setTimeout function

Call JavaScript Function in One File from Another JavaScript File



Tuesday, January 27, 2015

WCF Vs Web Services

Understanding IEnumerable and IQueryable in C#


Monday, January 26, 2015

Polling AJAX Requests in JavaScript

Render MVC View as String


Sunday, January 25, 2015

Repository Pattern - I

 

Repository Pattern


Friday, January 23, 2015

Customizing View Engines

Thursday, January 22, 2015

Bundling & Minification

Area Registration in MVC

Wednesday, January 21, 2015

MVC Miscellanous ...

Convert @HTML.BeginForm to @Ajax form without using @Ajaxform helper

Tuesday, January 20, 2015

Razor Syntax Quick Reference

Load a Partial View inside the Parent View on ActionLink Click

 

How to load the partial view Client Side using Javascript

Tuesday, January 13, 2015

Create a custom remote attribute and override IsValid() method



Sunday, January 11, 2015

Load Navigation Properties Explicitly



DataAnnotations


  1.  

Friday, January 9, 2015

EF Migrations -Nuget Command Reference-1

 

EF- To Set Default Values in Database Columns using CF Migrations

 

EF: Database initialization strategy Code First -(1)

 

Wednesday, January 7, 2015

EF: Unrecognized element 'providers' exception while downgrading from EF-6 to EF-5


Sometimes the "<providers>" configuration is not removed while downgrading from EF-6 to EF-5.
some simply remove these "<providers>" tags inside the <entityFramework> tag.

<entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="v12.0" />
      </parameters>
    </defaultConnectionFactory>
    <!--<providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
    </providers>-->
  </entityFramework>

EF CodeFirst With Visual Studio Cannot drop database because it is in use error.

Execute the following script from the master database catalog:


USE MASTER
ALTER DATABASE MyDBName
   SET SINGLE_USER WITH ROLLBACK IMMEDIATE 
ALTER DATABASE MyDBName SET MULTI_USER

Monday, January 5, 2015

Some LINQ Examples






Twitter Delicious Facebook Digg Stumbleupon Favorites More