コード例 #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
 }