I have a dll that uses the Entity Framework 6 to do some database operations. I\'m using a database first approach. The model and everything concerning the Entity Framework,
You can use singleton patter for it . For example
private YouurDBContext context; public YouurDBContext Context { get { if (context==null) { context = new YouurDBContext(); } return context; } set { context = value; } }