Last post Aug 17, 2018 04:04 PM by DoctorWho
Aug 17, 2018 03:51 PM|DoctorWho|LINK
We're trying to move some of our processes and services to Azure. I've been using WebAPI for the middle-tier and using POCO classes to pass data back and forth. However, my colleagues would rather use Entity Framework, which makes sense. They've asked me
if WebAPI services can work with EF objects, sending data and receiving results. I'm not so sure, so I'm asking here. Can WebAPI pass EF objects in method parameters and return them?
Aug 17, 2018 03:58 PM|Mikesdotnetting|LINK
Yes. You can use any data access technology within a Web API application. EF is the recommended approach. The objects that EF works with generally tend to be POCO classes.
Aug 17, 2018 04:04 PM|DoctorWho|LINK
OK, thank you!