예제 #1
0
        public bool IsConfiguredTable(string tableName, out ReplicatedTableConfiguredTable configuredTable)
        {
            configuredTable = null;

            if (string.IsNullOrEmpty(tableName))
            {
                // we may have a default rule configured for any table,
                // but consider "no-name" as false.
                return(false);
            }

            ReplicatedTableConfiguredTable config = GetTable(tableName) ?? GetDefaultConfiguredTable();

            // Neither explicit config, nor default config
            if (config == null)
            {
                return(false);
            }

            if (config.IsAnyViewNullOrEmpty())
            {
                return(false);
            }

            configuredTable = config;
            return(true);
        }
        public bool IsConfiguredTable(string tableName, out ReplicatedTableConfiguredTable configuredTable)
        {
            configuredTable = null;

            ReplicatedTableConfiguredTable config = this.configManager.FindConfiguredTable(tableName);

            // Neither explicit config, nor default config
            if (config == null)
            {
                return(false);
            }

            if (config.IsAnyViewNullOrEmpty())
            {
                return(false);
            }

            configuredTable = config;
            return(true);
        }