/// <summary> /// Creates a new DataSource to connect to a VM-hosted SQL Server database with change detection and deletion detection enabled. /// </summary> /// <param name="name">The name of the datasource.</param> /// <param name="sqlConnectionString">The connection string for the SQL Server database.</param> /// <param name="tableOrViewName">The name of the table or view from which to read rows.</param> /// <param name="changeDetectionPolicy">The change detection policy for the datasource. Note that only high watermark change detection is /// allowed for SQL Server when deletion detection is enabled.</param> /// <param name="deletionDetectionPolicy">The data deletion detection policy for the datasource.</param> /// <param name="description">Optional. Description of the datasource.</param> /// <returns>A new DataSource instance.</returns> public static DataSource SqlServerOnAzureVM( string name, string sqlConnectionString, string tableOrViewName, HighWaterMarkChangeDetectionPolicy changeDetectionPolicy, DataDeletionDetectionPolicy deletionDetectionPolicy, string description = null) { return(AzureSql(name, sqlConnectionString, tableOrViewName, changeDetectionPolicy, deletionDetectionPolicy, description)); }
/// <summary> /// Creates a new DataSource to connect to an Azure SQL database with change detection and deletion detection enabled. /// </summary> /// <param name="name">The name of the datasource.</param> /// <param name="sqlConnectionString">The connection string for the Azure SQL database.</param> /// <param name="tableOrViewName">The name of the table or view from which to read rows.</param> /// <param name="changeDetectionPolicy">The change detection policy for the datasource. Note that only high watermark change detection is /// allowed for Azure SQL when deletion detection is enabled.</param> /// <param name="deletionDetectionPolicy">The data deletion detection policy for the datasource.</param> /// <param name="description">Optional. Description of the datasource.</param> /// <returns>A new DataSource instance.</returns> public static DataSource AzureSql( string name, string sqlConnectionString, string tableOrViewName, HighWaterMarkChangeDetectionPolicy changeDetectionPolicy, DataDeletionDetectionPolicy deletionDetectionPolicy, string description = null) { Throw.IfArgumentNull(changeDetectionPolicy, nameof(changeDetectionPolicy)); Throw.IfArgumentNull(deletionDetectionPolicy, nameof(deletionDetectionPolicy)); return(CreateSqlDataSource(name, sqlConnectionString, tableOrViewName, description, changeDetectionPolicy, deletionDetectionPolicy)); }