예제 #1
0
 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;
     }
 }
예제 #2
0
 public abstract void OnConfiguring(ConsoleDbContextOptions options);