dotnetcore / SmartSql

SmartSql = MyBatis in C# + .NET Core+ Cache(Memory | Redis) + R/W Splitting + PropertyChangedTrack +Dynamic Repository + InvokeSync + Diagnostics
https://smartsql.net/
Apache License 2.0
1.1k stars 222 forks source link

从连接字符串创建SmartSql实例怎么指定xml路径 #115

Closed HugoChanD closed 5 years ago

HugoChanD commented 5 years ago

SmartSql version 4.9.4

var smartSqlBuilder = new SmartSqlBuilder() .UseDataSource(DbProvider.SQLSERVER, ConnectionString) .Build();

怎么指定xml路径 用SmartSqlMapConfig可以指定SmartSqlMaps标签 如果用上面方式创建如何指定具体的xml

Ahoo-Wang commented 5 years ago

https://github.com/dotnetcore/SmartSql/blob/master/src/SmartSql/SmartSqlBuilder.cs#L457