Issue Details (XML | Word | Printable)

Key: DNET-913
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Jiri Cincura
Reporter: Jiri Cincura
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
.NET Data provider

System.InvalidCastException: Object cannot be cast from DBNull to other types.

Created: 04/Nov/19 02:34 PM   Updated: 04/Nov/19 02:38 PM
Component/s: Entity Framework Core
Affects Version/s: 7.1.1.0
Fix Version/s: None

File Attachments: 1. Zip Archive EFDataAccess.zip (508 kB)
2. File REPORTTEST.FDB (3.81 MB)



 Description  « Hide
System.InvalidCastException: Object cannot be cast from DBNull to other types.

   at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)

   at System.Convert.ToInt32(Object value, IFormatProvider provider)

   at FirebirdSql.Data.Common.DbValue.GetInt32()

   at FirebirdSql.Data.FirebirdClient.FbDataReader.<GetInt32>b__51_0(Int32 x)

   at FirebirdSql.Data.FirebirdClient.FbDataReader.CheckedGetValue[T](Func`2 f, Int32 index)

   at FirebirdSql.Data.FirebirdClient.FbDataReader.GetInt32(Int32 i)

   at lambda_method(Closure , DbDataReader )

   at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)

   at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext()

   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider._TrackEntities[TOut,TIn](IEnumerable`1 results, QueryContext queryContext, IList`1 entityTrackingInfos, IList`1 entityAccessors)+MoveNext()

   at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext()

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.