Property | Type | Description | |
---|---|---|---|
ParentTable |
Method | Description | |
---|---|---|
CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, |
||
GetDropSQL ( ) : string | ||
GetEditor ( ) : object | ||
GetSaveSql ( ) : string | ||
TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System |
Method | Description | |
---|---|---|
GetCurrentName ( ) : string | ||
Load ( ) : void | ||
Save ( ) : bool |
We override save here so we can change the sql from create to alter on first save
|
Method | 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
|
public static CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, |
||
HierarchyAccessor | DataViewHierarchyAccessor | |
parent | ||
return | void |
public TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System | ||
hierarchyAccessor | DataViewHierarchyAccessor | |
id | int | |
return | System |