I'm using Entity Framework code-first. When mapping class properties to Oracle database table columns I do the following:
public class Employee{
[Column("EMPLOYEEID")]
public int EmployeeID{get;set;}
}
I've noticed that I can also specify the column type with the help of TypeName named parameter. But I have no idea where I can get the list of possible values. In the msdn documentation it just says:
The database provider specific data type of the column the property is mapped to.
And that's it. I see people passing varchar,int but I wonder where they get those values. Right now I need to map a property of type long
to the corresponding column but don't know what to set the TypeName to. I've tried Int64, but I get runtime exception about incompatibility of database and entity framework types.