Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 private static string DropTriggerSnippet(AutoCodePropertyInfo info)
 {
     return Sql.Format("AutoCodeDatabaseDefinition_Remove",
         SqlUtility.Identifier(info.Property.DataStructure.Module.Name),
         TriggerName(info.Property));
 }