public void Execute(string typeName, string[] constructorArguments) { DebugCheck.NotEmpty(typeName); var manipulator = new ConfigFileManipulator(); var processor = new ConfigFileProcessor(); new ConfigFileFinder().FindConfigFiles( Project.ProjectItems, i => processor.ProcessConfigFile( i, new Func<XDocument, bool>[] { c => manipulator.AddOrUpdateConfigSection(c, GetType().Assembly.GetName().Version), c => manipulator.AddOrUpdateConnectionFactoryInConfig( c, new ConnectionFactorySpecification(typeName, constructorArguments)) })); }
public void Execute(string typeName, string[] constructorArguments) { DebugCheck.NotEmpty(typeName); var manipulator = new ConfigFileManipulator(); var processor = new ConfigFileProcessor(); new ConfigFileFinder().FindConfigFiles( Project.ProjectItems, i => processor.ProcessConfigFile( i, new Func <XDocument, bool>[] { c => manipulator.AddOrUpdateConfigSection(c, GetType().Assembly.GetName().Version), c => manipulator.AddOrUpdateConnectionFactoryInConfig( c, new ConnectionFactorySpecification(typeName, constructorArguments)) })); }
public SqlCompactConnectionFactoryConfigurator(Project project) { DebugCheck.NotNull(project); var manipulator = new ConfigFileManipulator(); var processor = new ConfigFileProcessor(); new ConfigFileFinder().FindConfigFiles( project.ProjectItems, i => processor.ProcessConfigFile( i, new Func <XDocument, bool>[] { c => manipulator.AddOrUpdateConnectionFactoryInConfig( c, new ConnectionFactorySpecification( ConnectionFactorySpecification.SqlCeConnectionFactoryName, ConnectionFactorySpecification.SqlCompactProviderName)) })); }
public SqlCompactConnectionFactoryConfigurator(Project project) { Contract.Requires(project != null); var manipulator = new ConfigFileManipulator(); var processor = new ConfigFileProcessor(); new ConfigFileFinder().FindConfigFiles( project.ProjectItems, i => processor.ProcessConfigFile( i, new Func<XDocument, bool>[] { c => manipulator.AddOrUpdateConnectionFactoryInConfig( c, new ConnectionFactorySpecification( ConnectionFactorySpecification.SqlCeConnectionFactoryName, ConnectionFactorySpecification.SqlCompactProviderName)) })); }