完成延时加载开发与测试,ICollection集合待支持

This commit is contained in:
28810
2019-01-19 19:11:15 +08:00
parent 56d79c9696
commit a7896007a9
25 changed files with 144 additions and 42 deletions

View File

@ -23,6 +23,7 @@ namespace FreeSql.Sqlite {
public bool IsAutoSyncStructure { get; set; } = true;
public bool IsSyncStructureToLower { get; set; } = false;
public bool IsLazyLoading { get; set; } = false;
static object _dicCsToDbLock = new object();
static Dictionary<string, (DbType type, string dbtype, string dbtypeFull, bool? isUnsigned, bool? isnullable, object defaultValue)> _dicCsToDb = new Dictionary<string, (DbType type, string dbtype, string dbtypeFull, bool? isUnsigned, bool? isnullable, object defaultValue)>() {

View File

@ -35,7 +35,7 @@ namespace FreeSql.Sqlite {
this.Cache = new CacheProvider(cache, log);
this.Ado = new SqliteAdo(this.InternalCommonUtils, this.Cache, log, masterConnectionString, slaveConnectionString);
this.InternalCommonUtils.CodeFirst = this.CodeFirst = new SqliteCodeFirst(this, this.InternalCommonUtils, this.InternalCommonExpression);
this.CodeFirst = new SqliteCodeFirst(this, this.InternalCommonUtils, this.InternalCommonExpression);
}
internal CommonUtils InternalCommonUtils { get; }

View File

@ -9,9 +9,7 @@ using System.Data.SQLite;
namespace FreeSql.Sqlite {
class SqliteUtils : CommonUtils {
IFreeSql _orm;
public SqliteUtils(IFreeSql orm) {
_orm = orm;
public SqliteUtils(IFreeSql orm) : base(orm) {
}
internal override DbParameter AppendParamter(List<DbParameter> _params, string parameterName, Type type, object value) {