pdevito3 / craftsman

A .NET scaffolding tool to help you stop worrying about boilerplate and focus on your business logic 🚀
https://wrapt.dev
MIT License
1.12k stars 65 forks source link

New project don't create tables under the database #136

Closed biapar closed 6 months ago

biapar commented 6 months ago

I create a small yaml file with one entity. I create the db info sqlserver. I boot the project but EF don't execute the migrations. Why?

pdevito3 commented 6 months ago

Going to need more info than that to help you

biapar commented 6 months ago

I don’t see any error. The program start but no tables. Where Does Serilog save the log files? No log folder. Thanks.

Inviato da Outlook per iOShttps://aka.ms/o0ukef


Da: Paul DeVito @.> Inviato: Wednesday, March 6, 2024 2:07:38 PM A: pdevito3/craftsman @.> Cc: BIAGIO PARUOLO @.>; Author @.> Oggetto: Re: [pdevito3/craftsman] New project don't create tables under the database (Issue #136)

Going to need more info than that to help you

— Reply to this email directly, view it on GitHubhttps://github.com/pdevito3/craftsman/issues/136#issuecomment-1980838541, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAFBQDJWPPNVR7ZFUDXF4N3YW4IJVAVCNFSM6AAAAABEI5BQWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBQHAZTQNJUGE. You are receiving this because you authored the thread.Message ID: @.***>

biapar commented 6 months ago

I solved with the command "ef database update" to push data to database🧐

pdevito3 commented 6 months ago

Serilog just outputs to the console by default. No log folder.

There is a migrations background service that should be running for you on startup. I need to see your template or project to diagnosis though. No where near enough info to help.

In the meantime, yeah a regular ef command being run manually should work