DEV Community

Discussion on: Using Entity Framework with Azure Functions

Collapse
 
djaus2 profile image
David Jones • Edited

Worth mentioning here: The BloggingContextFactory class code needs the following usings:

using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Design;
Enter fullscreen mode Exit fullscreen mode

Also the line of code:

[assembly: FunctionsStartup(typeof(<ProjectName>.Startup))]
Enter fullscreen mode Exit fullscreen mode

that is required in the startup code page just before the namespace declaration is also worth mentioning at this level.

Also the

<Target Name="PostBuild"

bit IS now not needed.