sqlite3 codefirst 适配完成,待测试

This commit is contained in:
28810
2019-01-08 22:19:40 +08:00
parent b339f60777
commit 3d132e4f52
31 changed files with 4596 additions and 45 deletions

View File

@ -252,7 +252,10 @@ namespace FreeSql.Internal {
case "Newtonsoft.Json.Linq.JArray": return JArray.Parse(string.Concat(value));
case "Npgsql.LegacyPostgis.PostgisGeometry": return value;
}
if (type != value.GetType()) return Convert.ChangeType(value, type);
if (type != value.GetType()) {
if (type.FullName == "System.TimeSpan") return TimeSpan.FromMilliseconds(double.Parse(value.ToString()));
return Convert.ChangeType(value, type);
}
return value;
}
internal static string GetCsName(string name) {