- add Oracle ToSqlBatchIdentityColumn

This commit is contained in:
2881099
2020-10-26 02:48:10 +08:00
parent faf883b62a
commit ecd7425be9
4 changed files with 80 additions and 188 deletions

View File

@ -131,7 +131,7 @@ public static partial class FreeSqlGlobalExtensions
if (that == null) return null;
if (that == typeof(string)) return default(string);
if (that == typeof(Guid)) return default(Guid);
if (that.IsArray) return Array.CreateInstance(that, 0);
if (that.IsArray) return Array.CreateInstance(that.GetElementType(), 0);
if (that.IsInterface || that.IsAbstract) return null;
var ctorParms = that.InternalGetTypeConstructor0OrFirst(false)?.GetParameters();
if (ctorParms == null || ctorParms.Any() == false) return Activator.CreateInstance(that, true);