Пример #1
0
        public FilterObject(RuleObjectType type, RuleScope scope, string matchString)
        {
            m_objectScope           = scope;
            m_objectType            = type;
            m_objectMatchString     = matchString;
            m_objectMatchStringList = new List <string>();
            m_objectMatchStringList.Add(matchString);

            switch (type)
            {
            case RuleObjectType.Database:
            case RuleObjectType.Table:
            case RuleObjectType.StoredProcedure:
            case RuleObjectType.View:
            case RuleObjectType.Function:
            case RuleObjectType.ExtendedStoredProcedure:
                m_isChecked = true;
                break;

            default:
                m_isChecked = true;
                break;
            }

            InitializeAndUpdate();
        }
Пример #2
0
 public Rule(
     RuleObjectType objectType,
     RuleScope objectScope,
     string matchString
     )
 {
     m_ObjectType  = objectType;
     m_ObjectScope = objectScope;
     m_MatchString = matchString;
 }
Пример #3
0
            public Rule(
                SqlInt32 ruleId,
                SqlInt32 objType,
                SqlString objScope,
                SqlString matchString
                )
            {
                Debug.Assert(!ruleId.IsNull);
                Debug.Assert(!objType.IsNull);

                m_RuleId      = ruleId.IsNull ? Constants.InvalidId : ruleId.Value;
                m_ObjectType  = getRuleObjectType(objType);
                m_ObjectScope = getRuleScope(objScope);
                m_MatchString = matchString.IsNull ? string.Empty : matchString.Value;
            }