Entity Framework Code First - Cast smallint and integer to int32
Im working on a small service tool for a database. My problem is that
since an update, some smallint-colums had been changed to integer.
public class TEST
{
public int ID { get; set; }
//public Int16 ID { get; set; }
public string TEST { get; set; }
}
I changed the type from Int16 to int. Everything works fine, except that I
can't use it with the old Version of the Database anymore. The Exception
is something like "System.Int32 expected, found Typ System.Int16".
Is there a way to cast all smallint and integer to int32?
Any ideas? My Environment: EntityFramework 5.0.0 .NET 4.5 FirebirdClient
3.0.2.0
No comments:
Post a Comment