Example #1
0
        public DbContext Connect()
        {
            var response = new RefactorMeContext();

            response.Database.CommandTimeout = 600;
            return(response);
        }
Example #2
0
        public async Task <DbContext> ConnectAsync()
        {
            var response = new RefactorMeContext();

            response.Database.CommandTimeout = 600;

            return(await
                   Task
                   .FromResult(response).ConfigureAwait(false));
        }