---
title: "Comment by Luis Moises Rojas on \"Creating Worker Service + Entity Framework Core in .NET\" | Hashnode"
description: "Hello, this is an excellent articule, but; this module: CreateDbIfNoneExist(host) can not be called because DOES NOT EXISTS in the context, you call it from Mai"
url: "https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c/comment/62a8b2560baf4306d9493fdf"
---

[Discussion](https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c)

Comment [Creating Worker Service + Entity Framework Core in .NET](https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c)

[Luis Moises Rojas](https://hashnode.com/@lmoisesrojas)

[Jun 14, 2022](https://hashnode.com/posts/creating-worker-service-entity-framework-core-in-net/621513343b018a8cb17c0b5c/comment/62a8b2560baf4306d9493fdf)

Hello, this is an excellent articule, but; this module: CreateDbIfNoneExist(host) can not be called because DOES NOT EXISTS in the context, you call it from Main and it is declared out. Any help?
