You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Therefore it always returns the value from ClientID:
InsertAll.cs on line 849do{if(await reader.ReadAsync(cancellationToken)){// No need to use async on this level (await reader.GetFieldValueAsync<object>(0, cancellationToken))varvalue= Converter.DbNullToNull(reader.GetValue(0));//!!!!!!!!!!!!!!!!! herevarindex= batchItems.Count >1&& reader.FieldCount >1? reader.GetInt32(1):position;
context.KeyPropertySetterFunc.Invoke(batchItems[index], value);result++;}position++;}while(await reader.NextResultAsync(cancellationToken));
Next problem
Assume it returns the correct Field-Value (ID). ID in our special case is an enumeration. In this case it throws an invalid cast exceptionr on the following line:
context.KeyPropertySetterFunc.Invoke(batchItems[index], value);
Message:Invalidcastfrom 'System.Int64' to '[EnumerationType]'.
StackTrace:
bei System.Convert.DefaultToType(IConvertiblevalue,TypetargetType,IFormatProviderprovider)
bei RepoDb.Converter.ToType[T](Objectvalue)
bei RepoDb.DbConnectionExtension.<InsertAllAsyncInternalBase>d__364`1.MoveNext()
Library Version:
Example: current master
The text was updated successfully, but these errors were encountered:
Bug Description
We have a table:
Without setting the identifier, it generates the following SQL-Command:
The SQL-Command doesn't change, if we set the identifier to ID by:
Therefore it always returns the value from ClientID:
Next problem
Assume it returns the correct Field-Value (ID). ID in our special case is an enumeration. In this case it throws an invalid cast exceptionr on the following line:
Library Version:
Example: current master
The text was updated successfully, but these errors were encountered: