public static SubscriptionCommands Build(SqlDialect sqlDialect, string tablePrefix)
    {
        var tableName = sqlDialect.GetSubscriptionTableName(tablePrefix);

        var subscribeCommand   = sqlDialect.GetSubscriptionSubscribeCommand(tableName);
        var unsubscribeCommand = sqlDialect.GetSubscriptionUnsubscribeCommand(tableName);
        var getSubscribers     = sqlDialect.GetSubscriptionQueryFactory(tableName);

        return(new SubscriptionCommands(
                   subscribe: subscribeCommand,
                   unsubscribe: unsubscribeCommand,
                   getSubscribers: getSubscribers));
    }
예제 #2
0
 internal override string GetSubscriptionUnsubscribeCommand(string tableName)
 {
     return(impl.GetSubscriptionUnsubscribeCommand(tableName));
 }