/// <summary> /// 验证xml /// </summary> /// <returns></returns> public static bool CheckMap(string xml, string dbKey = null) { var config = DataConfig.Get(dbKey); var info = new FileInfo(xml); return(MapXml.GetXmlList(info.FullName, "sqlMap", config).isSuccess); }
/// <summary> /// 验证xml /// </summary> /// <returns></returns> public bool CheckMap(string xml, string dbKey = null) { var config = DataConfig.Get(dbKey); var info = new FileInfo(xml); var key = new List <string>(); var sql = new List <string>(); var db = new Dictionary <string, object>(); var type = new Dictionary <string, object>(); var param = new Dictionary <string, object>(); var check = new Dictionary <string, object>(); var name = new Dictionary <string, object>(); var parameName = new Dictionary <string, object>(); return(MapXml.GetXmlList(info.FullName, "sqlMap", ref key, ref sql, ref db, ref type, ref check, ref param, ref name, ref parameName, config)); }