Ejemplo n.º 1
0
 public void AddDatabase(DbToolDatabase database)
 {
     if (Databases.Any(d => d.Name.EqualsIgnoreCase(database.Name)))
     {
         throw new UserException(ExceptionType.DatabaseAlreadyExists, database.Name);
     }
     Databases.Add(database);
     database.Parent = this;
 }
Ejemplo n.º 2
0
 public DbToolContext WithDatabase(DbToolDatabase database)
 {
     AddDatabase(database);
     return(this);
 }