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


Represents a filter condition that is evaluated against the name of an object.
Object Model
EntityNameFilterCondition Class
Syntax
'Declaration
 
Public NotInheritable Class EntityNameFilterCondition 
   Inherits EntityFilterCondition
   Implements IEntityFilterEvaluator 
public sealed class EntityNameFilterCondition : EntityFilterCondition, IEntityFilterEvaluator  
public __gc __sealed class EntityNameFilterCondition : public EntityFilterCondition, IEntityFilterEvaluator  
Example
The following code creates a condition that is part of a stored-procedure filter. The condition selects only objects the name of which starts with "tmp". The group to which the condition belongs, excludes the objects matched by the condition:
EntityFilter procedureFilter = new EntityFilter(SqlEntityTypeEnum.StoredProcedure);
EntityFilterGroup group = new EntityFilterGroup(procedureFilter);
group.IncludeMatches = false;
group.Conditions.Add(new EntityNameFilterCondition("tmp", EntityFilterConditionTypeEnum.StartingWith, group));
procedureFilter.Groups.Add(group);
Inheritance Hierarchy

System.Object
   xSQL.Schema.SqlServer.Filter.EntityFilterCondition
      xSQL.Schema.SqlServer.Filter.EntityNameFilterCondition

Requirements

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

Reference

EntityNameFilterCondition Members
xSQL.Schema.SqlServer.Filter Namespace

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback