internal void Configure() { try { _isConfigured = true; var options = new ConsoleDbContextOptions(); OnConfiguring(options); if (options.DataFile == null) { throw new InvalidOperationException("Context Datafile cannot be null"); } DataFile = options.DataFile; } catch { _isConfigured = false; } }
public abstract void OnConfiguring(ConsoleDbContextOptions options);