Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when pass nullable value. #25

Open
RiddlerKnight opened this issue Aug 29, 2021 · 1 comment
Open

Error when pass nullable value. #25

RiddlerKnight opened this issue Aug 29, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@RiddlerKnight
Copy link

Table model

public class ExModel
{
  public int ID {get;set;}
  public string Name {get;set;}
  public decimal? TotalExpenses {get;set;}
}
Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
 ---> Cassandra.InvalidTypeException: Unknown Cassandra target type for CLR type System.DBNull
   at Cassandra.Serialization.GenericSerializer.Serialize(ProtocolVersion version, Object value)
   at Cassandra.Serialization.Serializer.Serialize(Object value)
   at Cassandra.FrameWriter.WriteAsBytes(Object value)
   at Cassandra.QueryProtocolOptions.Write(FrameWriter wb, Boolean isPrepared)
   at Cassandra.Requests.ExecuteRequest.WriteBody(FrameWriter wb)
   at Cassandra.Requests.BaseRequest.WriteFrame(Int16 streamId, MemoryStream stream, ISerializer connectionSerializer)
   at Cassandra.OperationState.WriteFrame(Int16 streamId, MemoryStream memoryStream, ISerializer serializer, Int64 timestamp)
   at Cassandra.Connections.Connection.RunWriteQueueAction()

I'm not sure this error is happen from this lib or Cassandra driver.

@simpleidserver simpleidserver self-assigned this Sep 19, 2021
@simpleidserver simpleidserver added the bug Something isn't working label Sep 19, 2021
thabart added a commit that referenced this issue Sep 19, 2021
@simpleidserver
Copy link
Owner

Hello,

Sorry for the delayed response. The issue is fixed in the branch "release/3.0.0" :)

Kind regards,

SimpleIdServer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants