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


Provides labels for database entities.
Object Model
EntityDescriptor Class
Syntax
'Declaration
 
Public NotInheritable Class EntityDescriptor 
public sealed class EntityDescriptor 
public __gc __sealed class EntityDescriptor 
Remarks
The entity description contains the entity name in different formats. EntityDescriptor class is implemented as a singleton class. Use the static property Instance to access the single instance of this class.
Example
The following code snippet prints the description of a stored procedure:
Console.WriteLine(EntityDescriptor.Instance.StoredProcedureDescription.Name);
Console.WriteLine(EntityDescriptor.Instance.StoredProcedureDescription.NamePlural);
Console.WriteLine(EntityDescriptor.Instance.StoredProcedureDescription.NameProperCase);
Console.WriteLine(EntityDescriptor.Instance.StoredProcedureDescription.NameProperCasePlural);            
            
            
            
The code generates the following output:
            
stored procedure
stored procedures
Stored Procedure
Stored Procedures
Inheritance Hierarchy

System.Object
   xSQL.Schema.SqlServer.EntityDescriptor

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

EntityDescriptor Members
xSQL.Schema.SqlServer Namespace

 

 


©Copyright 2022 xSQL Software. All Rights Reserved.

Send Feedback