摘要:
public class MyClass { [StringLengthValidator(1, 32, MessageTemplate = "MyValue is too long", Ruleset = "MyRules")] [MyValidator(MessageTemplate="MyValue is invalid", Ruleset = "MyRules")] ... 阅读全文
摘要:
Give this a shot. In Visual Studio 2010, open your app.config or web.config file. Go to the XML menu and select Create Schema. This action should crea... 阅读全文