예제 #1
0
        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);
        }
예제 #2
0
 public void SetContext(ContextEF context)
 {
     //set the entity context here
 }