I am working on a project using Asp.net mvc 3 and planning to have oracle 11g database as back-end.
I was able to access oracle server with no problem and data loaded successfully into an html table.
The problem comes when I try to add, edit or delete a record. I believe it is a very simple issue, but till now, I couldn't figure it out. The following simple model is used:
class Country
{
public int CountryId { get; set; }
public string CountryName { get; set; }
}
The CountryId feild was created at Oracle using NUMBER(10) as I thought this will work as SQL Server Integer. But an exception was raised, indicates that it couldn't take the value as Edm.decimal !
I tried to make it NUMBER(19) and changed the CountryId to long and still getting the same exception.
I spent long hours searching for an open source project that is using asp.net mvc with oracle, but I couldn't find any!
Any idea, why oracle is not supporting integer, long? how to make it working as expected with my MVC project?