Answer the question
In order to leave comments, you need to log in
Linq database query?
var net = from p in db.Setis
join hard_name in db.Network_hard_names on p.Net_nId equals hard_name.Id
join hard_type in db.Network_hard_types on p.Net_tId equals hard_type.Id
join hard_port in db.Network_hard_ports on p.Net_pId equals hard_port. Id
where p.SetiId == SetiId
select new {
Name1 = hard_name.Name,
Name2 = hard_type.Name,
Name3 = hard_port.Name
};
foreach (var b in Model)
I'm trying to output the result to the view, it returns empty.
How to display the query result of all tables in a view?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question