EF Core Beta3 Column contains NULL data — oracle-tech

    Forum Stats

  • 3,715,654 Users
  • 2,242,820 Discussions
  • 7,845,479 Comments

Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

EF Core Beta3 Column contains NULL data

3989398
3989398 Member Posts: 3
edited May 2019 in ODP.NET

The OracleDataReader.GetDateTime(int i) method throws an InvalidCastException :Column contains NULL data  whenever the column in any row contains null data.

How to solve this problem?

Thanks,

Error Message:

An unhandled exception occurred while processing the request.

InvalidCastException: Column contains NULL data

Oracle.ManagedDataAccess.Client.OracleDataReader.GetDateTime(int i)

  • Stack
  • Query
  • Cookies
  • Headers
  • InvalidCastException: Column contains NULL data

    • Oracle.ManagedDataAccess.Client.OracleDataReader.GetDateTime(int i)

    • lambda_method(Closure , DbDataReader )

    • Microsoft.EntityFrameworkCore.Storage.Internal.TypedRelationalValueBufferFactory.Create(DbDataReader dataReader)

    • Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable<T>+AsyncEnumerator.BufferlessMoveNext(DbContext _, bool buffer, CancellationToken cancellationToken)

    • Oracle.EntityFrameworkCore.Storage.Internal.OracleExecutionStrategy.ExecuteAsync<TState, TResult>(TState state, Func<DbContext, TState, CancellationToken, Task<TResult>> operation, Func<DbContext, TState, CancellationToken, Task<ExecutionResult<TResult>>> verifySucceeded, CancellationToken cancellationToken)

    • Microsoft.EntityFrameworkCore.Query.Internal.AsyncQueryingEnumerable<T>+AsyncEnumerator.MoveNext(CancellationToken cancellationToken)

    • System.Linq.AsyncEnumerable+SelectEnumerableAsyncIterator<TSource, TResult>.MoveNextCore(CancellationToken cancellationToken) in Select.cs

    • System.Linq.AsyncEnumerable+AsyncIterator<TSource>.MoveNext(CancellationToken cancellationToken) in AsyncIterator.cs

    • Microsoft.EntityFrameworkCore.Query.Internal.AsyncLinqOperatorProvider+ExceptionInterceptor<T>+EnumeratorExceptionInterceptor.MoveNext(CancellationToken cancellationToken)

    • System.Linq.AsyncEnumerable.Aggregate_<TSource, TAccumulate, TResult>(IAsyncEnumerable<TSource> source, TAccumulate seed, Func<TAccumulate, TSource, TAccumulate> accumulator, Func<TAccumulate, TResult> resultSelector, CancellationToken cancellationToken) in Aggregate.cs

    • i9kun.Business.Controllers.Customs.CtmiehdrController.Index() in CtmiehdrController.cs

      +
      1.   return View(await _context.Ctm_ie_hdrs.ToListAsync());

Best Answer

Answers

Sign In or Register to comment.