I am aware of various tutorials as well as complete examples targeting WebApi & Entity Framework (even from Microsoft) that have WebApi
WebApi
Entity Framework
It's because they're wrong. Don't trust other people's code, especially when it's part of an online tutorial.