protected static RentACarContext CreateContext() { if (context == null) { lock (_lockSync) { if (context == null) { context = new RentACarContext(); } } } return(context); }
public RepositoryBase() { context = CreateContext(); }