System.InvalidCastException: Object cannot be cast from DBNull to other types. ------------------------------------------------------------------------------
Key: DNET-913 URL: http://tracker.firebirdsql.org/browse/DNET-913 Project: .NET Data provider Issue Type: Bug Components: Entity Framework Core Affects Versions: 7.1.1.0 Reporter: Jiri Cincura Assignee: Jiri Cincura Priority: Minor 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() -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://tracker.firebirdsql.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider