ErikEJ / EFCorePowerTools

Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
MIT License
2.12k stars 293 forks source link

Option to disable opening DbContext file in VS after reverse engineering #947

Closed GearTheWorld closed 3 years ago

GearTheWorld commented 3 years ago

Describe what is not working as expected.

More like a suggestion but I don't know where to ask. Having an option to uncheck in order to avoid EFCPT to open ApplicationDbContext after generation is complete

Steps to reproduce

Reverse Engineer and when it's finished, ApplicationDbContext is open and each time we have to close it

Further technical details

Version 2.5.612.0

SQLite ADO.NET Provider included: 1.0.109.0 SQLite EF6 DbProvider in GAC - No

System.Data.SQLite DDEX provider - No SQLite Simple DDEX provider - Yes

Database engine: (SQlite, SQL Compact, SQL Server, Postgres)

SQL 2016

Visual Studio version: (e.g. Visual Studio 2019 16.8)

Visual Studio 2019 Version 16.9.4

ErikEJ commented 3 years ago

Why is that an issue?

GearTheWorld commented 3 years ago

As I said since I don't know where to post a suggestion I post in Issue. Tell me where I can suggest feature. The problem is that opening this file each time which doesn't need to be modify at all have to be close every time. Why you open this file each time the generation is completed ?

ErikEJ commented 3 years ago

Oh, you are posting in the right place. I am just trying to understand what the requirement is.

GearTheWorld commented 3 years ago

Here's a video so ApplicationDbContext is opened after a successful generation and 100% of the time we close this file as there's no need to edit it and it's very annoying!

https://user-images.githubusercontent.com/8614008/116523466-76040080-a900-11eb-9a58-3632b9656e59.mp4

ErikEJ commented 3 years ago

Thanks, I got the message already!

GearTheWorld commented 3 years ago

I'm not too familiar with GitHub in regards to the entire process until the version is available

I downloaded the Daily build 2.5.634 and I don't see the option. Add option to disable opening generated DbContext #947

Maybe I'm too fast and have to wait?

ErikEJ commented 3 years ago

It is under Tools, Options, EF Core Power Tools...

ErikEJ commented 3 years ago

Did you find it?

GearTheWorld commented 3 years ago

Oh all right yes I found it thank you very much !