this solution has 4 layers.
in the BLL there is Validation Method check the user input (Server Validation ) the Error happend here:
BLL.server
Entities dbo = new Entities { };
var query = from c in dbo.database1 where c.id == id select c.Name;
I reference
and other lower Project,
if there a good approach to make it right HINT me please.
In your query you select from context.db.Name
, whereas you should select from context.db
, otherwise select c.Name
would mean context.db.Name.Name
Entities dbo = new Entities();
var query = from c in dbo.database1 where c.id == id select c.Name;