Optimize single table read performance

This commit is contained in:
2881099
2022-06-01 14:21:53 +08:00
parent 7290109734
commit 105947c2ed
9 changed files with 139 additions and 219 deletions

View File

@ -9,6 +9,11 @@ namespace FreeSql.Sqlite
public class SqliteProvider<TMark> : BaseDbProvider, IFreeSql<TMark>
{
static SqliteProvider()
{
Select0Provider._dicMethodDataReaderGetValue[typeof(Guid)] = typeof(DbDataReader).GetMethod("GetGuid", new Type[] { typeof(int) });
}
public override ISelect<T1> CreateSelectProvider<T1>(object dywhere) => new SqliteSelect<T1>(this, this.InternalCommonUtils, this.InternalCommonExpression, dywhere);
public override IInsert<T1> CreateInsertProvider<T1>() => new SqliteInsert<T1>(this, this.InternalCommonUtils, this.InternalCommonExpression);
public override IUpdate<T1> CreateUpdateProvider<T1>(object dywhere) => new SqliteUpdate<T1>(this, this.InternalCommonUtils, this.InternalCommonExpression, dywhere);