예제 #1
0
 public override Schema GetSchema()
 => Schema.Create(this.Name, "Database Connection")
 .WithText("name", Validator.Required(), Validator.Pattern(@"^\S+$"))
 .WithText("comments")
 .WithSelect("dbProvider", "Database Provider", lookupProvider.Get().ToOptions(), Validator.Required())
 .WithTextArea("connectionString", 2, Validator.Required());