예제 #1
0
        protected static RentACarContext CreateContext()
        {
            if (context == null)
            {
                lock (_lockSync)
                {
                    if (context == null)
                    {
                        context = new RentACarContext();
                    }
                }
            }

            return(context);
        }
예제 #2
0
 public RepositoryBase()
 {
     context = CreateContext();
 }