Showing posts with label ENTITY FRAMEWORK. Show all posts
Showing posts with label ENTITY FRAMEWORK. Show all posts

Monday, February 25, 2019

Calling SQL Server stored procedures from Entity Framework

Thursday, February 21, 2019

Entity Framework Notes


Saturday, September 16, 2017

EF Migrations -Nuget Command Reference - 2


Sunday, January 11, 2015

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






Twitter Delicious Facebook Digg Stumbleupon Favorites More