Published on InterSystems Developer Community (https://community.intersystems.com)

Home > The specified cast from a materialized 'System.Int64' type to the 'System.Int32' type is not valid DatabaseTable creation Id field is created with [xDBC Type = BIGINT]

Question
Malik Ahmed · May 25, 2020

The specified cast from a materialized 'System.Int64' type to the 'System.Int32' type is not valid DatabaseTable creation Id field is created with [xDBC Type = BIGINT]

Hi !

I am getting below error in my .NET MVC project, I am IRIS Entity Framwork, in the database table filed and model having the same datatype int.

The specified cast from a materialized 'System.Int64' type to the 'System.Int32' type is not valid db Table creation Id field is created with [xDBC Type = BIGINT]

 

Please kindly advice me.

 

Thank you

#.NET #InterSystems IRIS #InterSystems IRIS for Health

Source URL:https://community.intersystems.com/post/specified-cast-materialized-systemint64-type-systemint32-type-not-valid-databasetable-creation