public static void Config() { var rootPath = Directory.GetCurrentDirectory(); //数据验证 ValidationManager.ConfigureByConfigFile(rootPath); //显示验证 DisplayManager.ConfigureByConfigFile(rootPath); }
/// <summary> /// 配置数据验证 /// </summary> static void ConfigureDataValidation() { ValidationManager.ConfigureByConfigFile(ApplicationManager.ApplicationExecutableDirectory); }