xSQL Schema Compare SDK for SQL Server version 12
EntityFilterGroup Class
Members  Example 

Represents a group of filter conditions combined with an operator.
Object Model
EntityFilterGroup Class
Public NotInheritable Class EntityFilterGroup 
   Implements IEntityFilterEvaluator 
public sealed class EntityFilterGroup : IEntityFilterEvaluator  
public __gc __sealed class EntityFilterGroup : public IEntityFilterEvaluator  

A group contains one or multiple filter conditions combined with an operator:

An object is checked against the group by calling the Match method. If the Match() method returns true, the specified object is excluded from schema compare operations.

The following code creates a group that is part of a view filter. The group excludes the views the name of which starts with "temp" or ends with "tmp":
EntityFilter viewFilter = new EntityFilter(SqlEntityTypeEnum.View);
EntityFilterGroup group = new EntityFilterGroup(viewFilter);
// combines the conditions in the group with the OR operator
group.ConditionOperator = EntityFilterOperatorEnum.OR;
// add the group conditions
group.Conditions.Add(new EntityNameFilterCondition("temp", EntityFilterConditionTypeEnum.StartingWith, group));
group.Conditions.Add(new EntityNameFilterCondition("tmp", EntityFilterConditionTypeEnum.EndingWith, group));
Inheritance Hierarchy



Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also


EntityFilterGroup Members
xSQL.Schema.SqlServer.Filter Namespace



┬ęCopyright 2022 xSQL Software. All Rights Reserved.

Send Feedback