Skip to content

byte Type not support #137

Description

@mzy666888

Package version

5.0.8

Affected package

BLite (client SDK)

.NET version

10.0

Description

I save byte type to database, but I read it always zero.

Minimal reproduction

Model define:

public class User
{
    public ObjectId Id { get; set; }
    public string Name { get; set; }
    public int Age { get; set; }
    public byte SlaveAddress { get; set; }
}
try
{
    using var context = new ConfigDbContext("my.db");
    var id = await context.CommParameters.InsertAsync(new User()
    {
        Name = "John",
        Age = 40,
        SlaveAddress = 8,
    });

    var user = await context.CommParameters.FindByIdAsync(id);
}
catch(Exception exception)
{

}

Expected behavior

SlaveAddress = 8;

Actual behavior

SlaveAddress = 0;

Image

Additional context

No response

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions