public static string TriggerSnippet(AutoCodePropertyInfo info) { return Sql.Format("AutoCodeDatabaseDefinition_TriggerSnippet", SqlUtility.Identifier(info.Property.DataStructure.Module.Name), TableName(info.Property), SqlUtility.Identifier(info.Property.Name), TriggerName(info.Property), ShortStringPropertyInfo.MaxLength, BeforeCursorTag.Evaluate(info), CursorSelectTag.Evaluate(info), CursorFetchTag.Evaluate(info), BeforeGenerateTag.Evaluate(info)); }
private static string DropTriggerSnippet(AutoCodePropertyInfo info) { return Sql.Format("AutoCodeDatabaseDefinition_Remove", SqlUtility.Identifier(info.Property.DataStructure.Module.Name), TriggerName(info.Property)); }