in .NET Framework, Entity Framework

The property could not be set to a ‘Int16’ value. You must set this property to a non-null value of type ‘Int32’.