SubscriptionManager(Table table, SqlTransaction?transaction, SqlConnection connection) { this.transaction = transaction; this.table = table; this.connection = connection; createTableSql = string.Format(SubscriptionTableSql, table); unsubscribeSql = string.Format(UnsubscribeSql, table); getSubscribersSql = GetSubscribersSql.Replace("{0}", table.FullTableName); subscribeSql = string.Format(SubscribeSql, table); }
SubscriptionManager(Table table, DbTransaction?transaction, DbConnection connection) { Guard.AgainstNull(table, nameof(table)); this.transaction = transaction; this.table = table; this.connection = connection; createTableSql = string.Format(SubscriptionTableSql, table); unsubscribeSql = string.Format(UnsubscribeSql, table); getSubscribersSql = GetSubscribersSql.Replace("{0}", table.FullTableName); subscribeSql = string.Format(SubscribeSql, table); }