Esempio n. 1
0
 /// <summary>
 /// 配置SqlSugar
 /// </summary>
 /// <param name="host"></param>
 /// <param name="stream"></param>
 /// <param name="path"></param>
 /// <returns></returns>
 public static ServiceHost ConfigureSqlSugarWithXml(this ServiceHost host, Stream stream, string path = null)
 {
     host.AddXmlConfiguration(stream);
     return(host.ConfigureSqlSugar(path));
 }
Esempio n. 2
0
 /// <summary>
 /// 配置SqlSugar
 /// </summary>
 /// <param name="host"></param>
 /// <param name="file"></param>
 /// <param name="path"></param>
 /// <returns></returns>
 public static ServiceHost ConfigureSqlSugarWithXml(this ServiceHost host, string file, string path = null)
 {
     host.AddXmlConfiguration(file, reloadOnChange: true);
     return(host.ConfigureSqlSugar(path));
 }