public void InitializeNonparsableProperties(out IEnumerable<IConceptInfo> createdConcepts)
 {
     if (!(Property.DataStructure is EntityInfo))
         throw new DslSyntaxException(this, "AutoCode concept may only be used on properties of entity.");
     Dependency_TriggerInfo = new AutoCodeTriggerInfo { Entity = (EntityInfo)this.Property.DataStructure };
     createdConcepts = new IConceptInfo[] { Dependency_TriggerInfo };
 }
 public static string TriggerSnippet(AutoCodeTriggerInfo info)
 {
     return Sql.Format("AutoCodeDatabaseDefinition_TriggerSnippet",
         SqlUtility.Identifier(info.Entity.Module.Name),
         info.Entity.Name,
         TriggerName(info.Entity),
         ShortStringPropertyInfo.MaxLength,
         ColumnsForAutoCodeSelectTag.Evaluate(info));
 }
 public void InitializeNonparsableProperties(out IEnumerable <IConceptInfo> createdConcepts)
 {
     if (!(Property.DataStructure is EntityInfo))
     {
         throw new DslSyntaxException(this, "AutoCode concept may only be used on properties of entity.");
     }
     Dependency_TriggerInfo = new AutoCodeTriggerInfo {
         Entity = (EntityInfo)this.Property.DataStructure
     };
     createdConcepts = new IConceptInfo[] { Dependency_TriggerInfo };
 }
 private static string DropTriggerSnippet(AutoCodeTriggerInfo info)
 {
      return Sql.Format("AutoCodeDatabaseDefinition_Remove",
         SqlUtility.Identifier(info.Entity.Module.Name),
         TriggerName(info.Entity));
 }