C# 클래스 MySql.Data.VisualStudio.TriggerNode

상속: DocumentNode, IVsTextBufferProvider
파일 보기 프로젝트 열기: elevate/mysqlconnector-.net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ParentTable TableNode

공개 메소드들

메소드 설명
CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, TableNode parent ) : void
GetDropSQL ( ) : string
GetEditor ( ) : object
GetSaveSql ( ) : string
TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System

보호된 메소드들

메소드 설명
GetCurrentName ( ) : string
Load ( ) : void
Save ( ) : bool

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

비공개 메소드들

메소드 설명
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

메소드 상세

CreateNew() 공개 정적인 메소드

public static CreateNew ( DataViewHierarchyAccessor HierarchyAccessor, TableNode parent ) : void
HierarchyAccessor DataViewHierarchyAccessor
parent TableNode
리턴 void

GetCurrentName() 보호된 메소드

protected GetCurrentName ( ) : string
리턴 string

GetDropSQL() 공개 메소드

public GetDropSQL ( ) : string
리턴 string

GetEditor() 공개 메소드

public GetEditor ( ) : object
리턴 object

GetSaveSql() 공개 메소드

public GetSaveSql ( ) : string
리턴 string

Load() 보호된 메소드

protected Load ( ) : void
리턴 void

Save() 보호된 메소드

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

TriggerNode() 공개 메소드

public TriggerNode ( DataViewHierarchyAccessor hierarchyAccessor, int id ) : System
hierarchyAccessor DataViewHierarchyAccessor
id int
리턴 System

프로퍼티 상세

ParentTable 공개적으로 프로퍼티

public TableNode,MySql.Data.VisualStudio ParentTable
리턴 TableNode