C# Class MySql.Data.VisualStudio.TriggerNode

Inheritance: DocumentNode, IVsTextBufferProvider
Afficher le fichier Open project: elevate/mysqlconnector-.net Class Usage Examples

Méthodes publiques

Свойство Type Description
ParentTable TableNode

Méthodes publiques

Méthode Description
CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, TableNode parent ) : void
GetDropSQL ( ) : string
GetEditor ( ) : object
GetSaveSql ( ) : string
TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System

Méthodes protégées

Méthode Description
GetCurrentName ( ) : string
Load ( ) : void
Save ( ) : bool

We override save here so we can change the sql from create to alter on first save

Private Methods

Méthode Description
ChangeSqlTypeTo ( string sql, string type ) : string
CheckSyntax ( ) : void
GetDropSQL ( string triggerName ) : string
GetNewTriggerText ( ) : string
GetTargetedTable ( string sql ) : string
IVsTextBufferProvider ( IVsTextLines &ppTextBuffer ) : int
IVsTextBufferProvider ( int fLock ) : int
MakeSureWeAreNotChangingTables ( string sql ) : void

This method will attempt to extract the table this trigger script is targeting and make sure it matches the table the trigger was originally created for. We do this because we don't want the user using an 'ALTER' script to move a trigger to a different table

Method Details

CreateNew() public static méthode

public static CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, TableNode parent ) : void
HierarchyAccessor DataViewHierarchyAccessor
parent TableNode
Résultat void

GetCurrentName() protected méthode

protected GetCurrentName ( ) : string
Résultat string

GetDropSQL() public méthode

public GetDropSQL ( ) : string
Résultat string

GetEditor() public méthode

public GetEditor ( ) : object
Résultat object

GetSaveSql() public méthode

public GetSaveSql ( ) : string
Résultat string

Load() protected méthode

protected Load ( ) : void
Résultat void

Save() protected méthode

We override save here so we can change the sql from create to alter on first save
protected Save ( ) : bool
Résultat bool

TriggerNode() public méthode

public TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System
hierarchyAccessor DataViewHierarchyAccessor
id int
Résultat System

Property Details

ParentTable public_oe property

public TableNode,MySql.Data.VisualStudio ParentTable
Résultat TableNode