D其他项目打电话AL工程EF Model




Based on your description and the error code, you will just need to ensure that your DataContext class inheirits from IDisposible:

public class YourDataContextClass : DbContext,IDisposable
{
     //Your class details here
}

And then install the EntityFramework in your references project using Manage NuGet Packages.

In last, setup the connectionstring in your references project config file.

Now, it should work fine.

版权声明:本文博客原创文章,博客,未经同意,不得转载。

posted @ 2015-08-14 08:41  mfrbuaa  阅读(136)  评论(0编辑  收藏  举报