internal RoleLike(ExtentFiltered extent, IRoleType role, string like) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLikeFilter(role, like); this.role = role; this.like = like; }
internal AllorsPredicateRoleLikeSql(AllorsExtentFilteredSql extent, IRoleType role, String str) { extent.CheckRole(role); PredicateAssertions.ValidateRoleLikeFilter(role, str); this.role = role; this.str = str; }
internal RoleLike(ExtentFiltered extent, IRoleType roleType, string like) { extent.CheckForRoleType(roleType); PredicateAssertions.ValidateRoleLikeFilter(roleType, like); this.roleType = roleType; this.isEmpty = like.Length == 0; this.regex = new Regex("^" + like.Replace("%", ".*") + "$"); }