mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- add Oracle ToSqlBatchIdentityColumn
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user