Wednesday, January 21, 2015

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






Sunday, March 2, 2014

Stored Proc to shrink all Databases on Sql Server Instance



Wednesday, December 11, 2013

Difference between temporary table and table variable in sql server


Difference between @@IDENTITY , SCOPE_IDENTITY() , IDENT_CURRENT('TableName')

Difference between @@IDENTITY, ....

Monday, September 9, 2013

Remove/Delete Duplicate Records From Database

Wednesday, August 28, 2013

Maintaining State of CheckBoxes While Paging in a GridView

Generate Dynamic Menu in ASP.NET

Twitter Delicious Facebook Digg Stumbleupon Favorites More