public void Setup() { Generator = new OracleGenerator() { CompatibilityMode = Runner.CompatibilityMode.STRICT, }; }
public OracleManagedProcessor( [NotNull] OracleManagedDbFactory factory, [NotNull] OracleGenerator generator, [NotNull] ILogger <OracleManagedProcessor> logger, [NotNull] IOptionsSnapshot <ProcessorOptions> options, [NotNull] IConnectionStringAccessor connectionStringAccessor) : base("OracleManaged", factory, generator, logger, options, connectionStringAccessor) { }
public DotConnectOracleProcessor( [NotNull] DotConnectOracleDbFactory factory, [NotNull] OracleGenerator generator, [NotNull] ILogger <DotConnectOracleProcessor> logger, [NotNull] IOptions <ProcessorOptions> options, [NotNull] IConnectionStringAccessor connectionStringAccessor) : base(() => factory.Factory, generator, logger, options.Value, connectionStringAccessor) { }
public ExtendedOracleManagedProcessor( OracleManagedDbFactory factory, OracleGenerator generator, ILogger <ExtendedOracleManagedProcessor> logger, IOptionsSnapshot <ProcessorOptions> options, IConnectionStringAccessor connectionStringAccessor, IExtendedMigrationProcessor <ExtendedOracleProcessorBase> extendedMigrationProcessor ) : base(factory, generator, logger, options, connectionStringAccessor) { ExtendedMigrationProcessor = extendedMigrationProcessor; }
public ExtendedOracleManagedProcessor( OracleManagedDbFactory factory, OracleGenerator generator, ILogger <ExtendedOracleManagedProcessor> logger, IOptionsSnapshot <ProcessorOptions> options, IConnectionStringAccessor connectionStringAccessor, IExtendedMigrationProcessor <ExtendedOracleProcessorBase> extendedMigrationProcessor, ICustomMigrationProcessor <OracleProcessor> customMigrationProcessor = null, IVersionTableMetaData versionTableMetaData = null ) : base(factory, generator, logger, options, connectionStringAccessor) { ExtendedMigrationProcessor = extendedMigrationProcessor; VersionTableMetaData = versionTableMetaData; Initialize(customMigrationProcessor); }
public void Setup() { Generator = new OracleGenerator(); }
public void Setup() { Generator = new OracleGenerator(useQuotedIdentifiers: true); }
public void Setup() { generator = new OracleGenerator(); quotedIdentiferGenerator = new OracleGenerator(true); }
public void Setup() { Generator = new OracleGenerator(new OracleQuoterQuotedIdentifier(new OptionsWrapper <QuoterOptions>(new QuoterOptions()))); }
public void Setup() { generator = new OracleGenerator(); }
public void Setup() { Generator = new OracleGenerator(new OracleQuoterQuotedIdentifier()); }
private static void Generate(SoaModel model, Options options) { options.OutputDir = Path.GetFullPath(options.OutputDir); IEnumerable<SoaObject> visible = model.Instances.Where(obj => !obj.HasMetaInfo<SoaMetaModel.MetaInfo.HiddenInfo>()); if (options.GenerateXsdWsdl) { XsdWsdlGenerator xsdWsdlGenerator = new XsdWsdlGenerator(visible, new GeneratorContext()); xsdWsdlGenerator.Properties.OutputDir = options.OutputDir+"/common"; xsdWsdlGenerator.Execute(); xsdWsdlGenerator = new XsdWsdlGenerator(visible, new GeneratorContext()); xsdWsdlGenerator.Properties.OutputDir = options.OutputDir + "/common/single"; xsdWsdlGenerator.Properties.GenerateSingleWsdl = true; xsdWsdlGenerator.Properties.GenerateSeparateXsdWsdlFolder = false; xsdWsdlGenerator.Execute(); } if (options.GenerateNetbeans) { NetbeansGenerator netbeansGenerator = new NetbeansGenerator(visible, new GeneratorContext()); netbeansGenerator.Properties.OutputDir = options.OutputDir; netbeansGenerator.Properties.ProjectName = options.NetbeansProject; netbeansGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; netbeansGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; netbeansGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; netbeansGenerator.Properties.GenerateRestfulWebService = options.GenerateRestfulWebService; netbeansGenerator.Execute(); } if (options.GenerateJBoss) { JBossCxfGenerator jbossGenerator = new JBossCxfGenerator(visible, new GeneratorContext()); jbossGenerator.Properties.OutputDir = options.OutputDir; jbossGenerator.Properties.ProjectName = options.JBossProject; jbossGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; jbossGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; jbossGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; jbossGenerator.Properties.GenerateRestfulWebService = options.GenerateRestfulWebService; jbossGenerator.Execute(); } if (options.GenerateTomcat) { TomcatCxfGenerator tomcatGenerator = new TomcatCxfGenerator(visible, new GeneratorContext()); tomcatGenerator.Properties.OutputDir = options.OutputDir; tomcatGenerator.Properties.ProjectName = options.TomcatProject; tomcatGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; tomcatGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; tomcatGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; tomcatGenerator.Properties.GenerateRestfulWebService = options.GenerateRestfulWebService; tomcatGenerator.Execute(); } if (options.GenerateIbm) { IbmRadGenerator ibmGenerator = new IbmRadGenerator(visible, new GeneratorContext()); ibmGenerator.Properties.OutputDir = options.OutputDir; ibmGenerator.Properties.ProjectName = options.JBossProject; ibmGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; ibmGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; ibmGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; ibmGenerator.Properties.GenerateRestfulWebService = options.GenerateRestfulWebService; ibmGenerator.Execute(); } if (options.GenerateOracle) { OracleGenerator oracleGenerator = new OracleGenerator(visible, new GeneratorContext()); oracleGenerator.Properties.OutputDir = options.OutputDir; oracleGenerator.Properties.ProjectName = options.OracleProject; oracleGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; oracleGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; oracleGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; oracleGenerator.Properties.GenerateRestfulWebService = options.GenerateRestfulWebService; oracleGenerator.Execute(); } if (options.GenerateVS) { if (options.GenerateRestfulWebService) { VSRestGenerator vsRestGenerator = new VSRestGenerator(visible, new GeneratorContext()); vsRestGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; vsRestGenerator.Properties.OutputDir = options.OutputDir; vsRestGenerator.Properties.ProjectName = options.VSProject; vsRestGenerator.Execute(); } else { VSSoapGenerator vsSoapGenerator = new VSSoapGenerator(visible, new GeneratorContext()); vsSoapGenerator.Properties.NoImplementationDelegates = options.GenerateNoImplementationDelegates; vsSoapGenerator.Properties.ThrowNotImplementedException = !options.GenerateNoUnimplementedException; vsSoapGenerator.Properties.GenerateImplementationBase = options.GenerateImplementationBase; vsSoapGenerator.Properties.OutputDir = options.OutputDir; vsSoapGenerator.Properties.ProjectName = options.VSProject; vsSoapGenerator.Execute(); } } }
public void ThrowsExceptionCreateTableWithIdentity() { var customGenerator = new OracleGenerator(new OracleColumn { ThrowExceptionIdentityNotSupported = true}, new OracleQuoter()); Assert.Throws<DatabaseOperationNotSupportedExecption>(() => customGenerator.Generate(GeneratorTestHelper.GetCreateTableWithAutoIncrementExpression())); }