Exemple #1
0
        public App(
            string connectionString,
            IAttributeService attributeService,
            IDatabaseService databaseService,
            ITableService tableService,
            ILinkService linkService,
            IDeployService deployService,
            IDatabaseValidator databaseValidator,
            ITableValidator tableValidator,
            IAttributeValidator attributeValidator,
            ICRUD crudService)
        {
            _defaultConnectionString = connectionString;
            // sorry for this
            _serverName = new Regex("(?:[Dd]ata\\s+[Ss]ource\\s*=\\s*)(?<server>.*?);")
                          .Match(input: _defaultConnectionString)
                          .Groups["server"]
                          .Value;

            _attributeService   = attributeService;
            _databaseService    = databaseService;
            _tableService       = tableService;
            _linkService        = linkService;
            _deployService      = deployService;
            _databaseValidator  = databaseValidator;
            _tableValidator     = tableValidator;
            _attributeValidator = attributeValidator;
            _crudService        = crudService;
        }
Exemple #2
0
 public DatabaseService(
     IRepository <Database> databaseRepository,
     IDatabaseValidator databaseValidator,
     ITableService tableService)
 {
     _databaseRepository = databaseRepository;
     _databaseValidator  = databaseValidator;
     _tableService       = tableService;
 }