public AttributeConstraintBuilder<ClassConstraintBuilder> HasNoAttributeNamed(string attributeName)
 {
     var builder = new AttributeConstraintBuilder<ClassConstraintBuilder>(this, attributeName);
     //attributes.Add(builder);
     attributesToDelete.Add(attributeName);
     return builder;
 }
 public AttributeConstraintBuilder<FieldConstraintBuilder> WithAttribute(string attributeName)
 {
     var attribute = new AttributeConstraintBuilder<FieldConstraintBuilder>(this, attributeName);
     attributes.Add(attribute);
     return attribute;
 }
Пример #3
0
 public static AttributeConstraintBuilder<ClassConstraintBuilder> EnsureDoesNotHaveAttribute(this ClassConstraintBuilder builder, string attributeName)
 {
     AttributeConstraintBuilder<ClassConstraintBuilder> cb = new AttributeConstraintBuilder<ClassConstraintBuilder>(builder, attributeName);
     cb.RemoveAttribute();
     return cb;
 }
 public AttributeConstraintBuilder<ClassConstraintBuilder> AttributeNamed(string attributeName)
 {
     var builder = new AttributeConstraintBuilder<ClassConstraintBuilder>(this, attributeName);
     attributes.Add(builder);
     return builder;
 }