/// <summary> /// 得到编译器 /// </summary> /// <param name="dataBase"></param> /// <returns></returns> public virtual ICompiler GetCompiler(OrmDataBaseInfo dataBase) { if (string.IsNullOrEmpty(dataBase.CompilerName) || !Compilers.ContainsKey(dataBase.CompilerName)) { return(Compilers.FirstOrDefault().Value); } return(Compilers[dataBase.CompilerName]); }
public ExtInfo GetInfo(string section, string key) { ValidateSection(section); return(Compilers.FirstOrDefault(c => c.Key == key)); }