mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-18 20:08:15 +08:00
反射+缓存性能优化,接近dapper
This commit is contained in:
@ -7,7 +7,7 @@ using System.Text;
|
||||
public class g {
|
||||
|
||||
public static IFreeSql mysql = new FreeSql.FreeSqlBuilder()
|
||||
.UseConnectionString(FreeSql.DataType.MySql, "Data Source=127.0.0.1;Port=3306;User ID=root;Password=root;Initial Catalog=cccddd;Charset=utf8;SslMode=none;Max pool size=10")
|
||||
.UseConnectionString(FreeSql.DataType.MySql, "Data Source=127.0.0.1;Port=3306;User ID=root;Password=root;Initial Catalog=cccddd;Charset=utf8;SslMode=none;Max pool size=100")
|
||||
.UseLogger(new LoggerFactory().CreateLogger("FreeSql.MySql"))
|
||||
.UseAutoSyncStructure(false)
|
||||
.Build();
|
||||
|
Reference in New Issue
Block a user