You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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"]);
The text was updated successfully, but these errors were encountered: