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; }
public TableService( IUOW UOW, ILogging Logging, ICurrentContext CurrentContext, ITableValidator TableValidator ) { this.UOW = UOW; this.Logging = Logging; this.CurrentContext = CurrentContext; this.TableValidator = TableValidator; }
public TableService( IRepository <Table> tableRepository, IAttributeService attributeService, ITableValidator tableValidator, ILinkService linkService, IRepository <Attribute> attributeRepository, IRepository <Link> linkRepository) { _tableRepository = tableRepository; _attributeService = attributeService; _tableValidator = tableValidator; _linkService = linkService; _attributeRepository = attributeRepository; _linkRepository = linkRepository; }