public override T GetRepository <T>() { T repository; lock (mutex) { repository = base.GetRepository <T>(); if (context == null) { context = new ContextEF(); } ((IRepositoryEF)repository).SetContext(context); } return(repository); }
public void SetContext(ContextEF context) { //set the entity context here }