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.
版权声明:本文博客原创文章,博客,未经同意,不得转载。