zzz projects Entity Framework 6 EF 6
Home EF Core Articles Knowledge Base Online Examples
  • Home
  • EF Core
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

4 results in tag: structuremap

With dependency injection, how do you dispose of resources?

I'm using StructureMap to resolve references to my repository class. My repository interface implements IDisposable, e.g....public interface IMyRepository : IDisposable { SomeClass GetById(int id); } ...An implementation of the interface using Entity Fr...
dependency-injection dispose entity-framework structuremap
asked by Fixer

Entity Framework : Change connection string at runtime

Assuming there is an ASP.NET MVC application that uses Entity Framework 6 with code-first approach and StructureMap as IoC.... Also It uses Unit Of Work pattern. Here are the codes : ...Domain Class ...    public class Product     {        ...
asp.net-mvc c# dependency-injection entity-framework structuremap
asked by Shahin

How to register per request dependencies using StructureMap, MVC 5, and WebApi 2?

I have a Mvc5-WebApi2 application that uses StructureMap for dependency injection using the StructureMap.Mvc5 and StructureMap.WebApi2 Nuget packages. I want to register my EF 6 DbContext with HttpContext lifecycle for both MVC and Web controllers. Can so...
asp.net-mvc-5 asp.net-web-api2 entity-framework-6 structuremap
asked by flipdoubt

Why Since Adding Effort.EF6 Unit Tests can I no longer run my C# MVC Website?

My C# MVC Website uses StructureMap for Dependency Injection....The constructor for my DbContext used to be as follows....public class PortalEntityModel : DbContext { public PortalEntityModel() : base("name=PortalEntityModel") { } } ...Now I h...
asp.net-mvc c# effort entity-framework structuremap
asked by Tom McClean

Page 1 of 1
  • 1

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!