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

There is no store type corresponding to the EDM type 'Edm.Byte' of primitive type 'Byte' [DNET519] #501

Closed
firebird-automations opened this issue Sep 7, 2013 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: Marcus Miris (marcusmiris)

With the class...

public class Foo {
byte prop { get; set; }
}

...the provider threw: "There is no store type corresponding to the EDM type 'Edm.Byte' of primitive type 'Byte'.

I checked and I think the following code at "FbProviderManifest.GetStoreType(edmType)" fixes the issue.

case PrimitiveTypeKind.Byte:
return TypeUsage.CreateDefaultTypeUsage(StoreTypeNameToStorePrimitiveType["smallint"]);

@firebird-automations
Copy link
Author

Commented by: @cincuranet

That's correct. Smallint has "wider" range than byte. Hence it might happen that reading the smallint column will not fit into byte property and result in error.

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

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

No branches or pull requests

2 participants