I am aware of various tutorials as well as complete examples targeting WebApi
& Entity Framework
(even from Microsoft) that have WebApi
Prime case for using, no matter how the method is exited, your DbContext will be disposed;
public HttpResponseMessage GetInternet(int id) {
using(var context = new InternetDbContext()) {
var result =
(from internet in context.Internets
where internet.Id.Equals(id)
select internet).FirstOrDefault();
if(result != null)
Request.CreateResponse(HttpStatusCode.OK, result);
}
}