SyntaxFix
Write A Post
Hire A Developer
Questions
using(var database=new DatabaseEntities()){}
Don't use using statement. Just write like that
DatabaseEntities database=new DatabaseEntities ();{}
It will work.
For documentation on the using statement see here.
using