public Database() { var debugging = WebConfigurationManager.AppSettings["Debugging"]; _connection = debugging == "true" ? new MySqlConnection( ConfigurationManager.ConnectionStrings["PortalIswintContextDebug"].ConnectionString) : new MySqlConnection( ConfigurationManager.ConnectionStrings["PortalIswintContextRelease"].ConnectionString); _connection.Open(); _context = new PortalIswintContext(_connection, false); }
public Repository(PortalIswintContext context, MySqlConnection connection) { _context = context; _connection = connection; }
public Database(PortalIswintContext context) { _context = context; }