Last post Oct 21, 2010 03:21 PM by sjnaughton
Oct 21, 2010 03:30 AM|zzdfc|LINK
Please,How to remove a element form AttributeCollection?
Adding a element may use AttributeCollection.FromExisting(),but removing a element should use what?
Oct 21, 2010 06:12 AM|sjnaughton|LINK
Hi Zzdfc, I don't think you can, and why do you want to?
Oct 21, 2010 11:30 AM|zzdfc|LINK
I want to custom MaxLength of StringLengthAttribute of MetaColumn , default is length of database column
I want to remove default StringLengthAttribute of metacolumn,and new a StringLengthAttribute instance to add to it.
How to do,please?
Oct 21, 2010 03:21 PM|sjnaughton|LINK
OK I've not tried this but have a look at my article here Dynamic Data – Custom Metadata Providers you may be able to remove/change inside the Type Descriptor.