Wednesday, 15 June 2011

c# - Why EF is pluralizing just one table? -



c# - Why EF is pluralizing just one table? -

im using entity framework database first approach create mapping of objects database. utilize ef wizard select tables , generates domain, context , , etc classes. in wizard didnt select alternative pluralize names. have table wich name error, , when seek records of particular table error message : invalid object name 'dbo.errors'.

public iqueryable<error> getallerrors() { homecoming _context.error.asqueryable(); } public actionresult index() { var aux = new messagerepository(); var errors = aux.getallerrors().tolist(); // exception here homecoming view(); }

why im getting error?

c# .net entity-framework

No comments:

Post a Comment