I have a problem with EF and a table that has only one identity column:
The table is FileData and the column is id_file_data that is an identity column (mysql database) and I have this code for the creation:
EntitiesContext context = new EntitiesContext();
FileData fileData = new FileData();
context.FileDatas.AddObject(fileData);
try
{
    context.SaveChanges();
}catch(Exception ex)
{
    throw ex;
}
But on the context.SaveChanges() I have a null reference exception.
What do I have to do to insert this entity?
Thanks!