public override void doRuleQuickFix(SQLAttribute eaAttribute, SQLRepository repository, int i, String errorMessage)
 {
     if (i == 0)
     {
         eaAttribute.getRealAttribute().Name = Regex.Replace(eaAttribute.Name, " ", "");
         eaAttribute.getRealAttribute().Update();
     }
 }
Beispiel #2
0
 public void updateEaGui()
 {
     EA.Attribute realElement = enumLiteral.getRealAttribute();
     realElement.Name    = this.Name;
     realElement.Default = this.Value;
     realElement.Alias   = this.Literal;
     realElement.Update();
 }
Beispiel #3
0
 public EEnumLiteral(SQLAttribute attribute, SQLRepository sqlRep)
 {
     this.Repository  = sqlRep;
     this.enumLiteral = attribute;
     this.Name        = attribute.Name;
     this.Value       = attribute.Default;
     this.Literal     = attribute.getRealAttribute().Alias;
     if (Literal == "")
     {
         Literal = Name;
     }
 }