- 支持 Sqlite :memory: 模式; #191

This commit is contained in:
28810
2020-01-21 11:36:01 +08:00
parent 15d5a59221
commit fc4071b730
5 changed files with 48 additions and 5 deletions

View File

@ -106,6 +106,12 @@ namespace FreeSql.Sqlite
_connectionString = string.Concat(att[0], idx == -1 ? "" : att[1].Substring(idx));
}
if (_connectionString.ToLower().Contains(":memory:"))
{
//内存模式
PoolSize = 1;
}
#if ns20
minPoolSize = 1;
#endif