v0.3.12 增加 ICodeFirst.IsConfigEntityFromDbFirst,若无配置实体类主键、自增,可从数据库导入;

This commit is contained in:
28810
2019-03-11 19:00:44 +08:00
parent 4f66c3b9eb
commit dae8eb7a67
17 changed files with 81 additions and 17 deletions

View File

@ -25,6 +25,7 @@ namespace FreeSql.Sqlite {
public bool IsAutoSyncStructure { get; set; } = true;
public bool IsSyncStructureToLower { get; set; } = false;
public bool IsSyncStructureToUpper { get; set; } = false;
public bool IsConfigEntityFromDbFirst { get; set; } = false;
public bool IsLazyLoading { get; set; } = false;
static object _dicCsToDbLock = new object();

View File

@ -25,7 +25,7 @@ namespace FreeSql.Sqlite {
public IAdo Ado { get; }
public ICache Cache { get; }
public ICodeFirst CodeFirst { get; }
public IDbFirst DbFirst { get { throw new NotImplementedException(); } }
public IDbFirst DbFirst => null;
public SqliteProvider(IDistributedCache cache, ILogger log, string masterConnectionString, string[] slaveConnectionString) {
if (log == null) log = new LoggerFactory(new[] { new Microsoft.Extensions.Logging.Debug.DebugLoggerProvider() }).CreateLogger("FreeSql.Sqlite");