Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inital migration needed for migration tool #30

Closed
psijkof opened this issue May 26, 2018 · 7 comments
Closed

Inital migration needed for migration tool #30

psijkof opened this issue May 26, 2018 · 7 comments

Comments

@psijkof
Copy link

psijkof commented May 26, 2018

Opening the migrations tool without having a single migration yet results in error message.

Steps to reproduce

Include a complete description that I can redo to reproduce the issue.

Further technical details

EF Core Power Tools version: (found in About dialog - blue questionmark icon on context menu)

599


Microsoft Visual Studio

EF Core Power Tools

Error:

System.ArgumentException: Absolute path information is required.

Parameter name: path

at System.Reflection.Assembly.LoadFile(String path)

at ReverseEngineer20.EfCoreModelBuilder.GetOperations(String outputPath) in C:\Code\EFCorePowerTools\src\GUI\ReverseEngineer20\EFCoreModelBuilder.cs:line 83

at ReverseEngineer20.EfCoreModelBuilder.BuildResult(String outputPath, Boolean generateDdl) in C:\Code\EFCorePowerTools\src\GUI\ReverseEngineer20\EFCoreModelBuilder.cs:line 34

at ReverseEngineer20.Program.Main(String[] args) in C:\Code\EFCorePowerTools\src\GUI\efpt\Program.cs:line 40

Database engine: (SQlite, SQL Compact, SQL Server, Postgres)
sql server (localdb)

Visual Studio version: (e.g. Visual Studio 2017 15.7)
15.7.2

It would be awesome to have the tool create a db context from a given model (namespace). I feel that is missing. Reverse engineering works very good. Just could use some help in code first scenario

@ErikEJ
Copy link
Owner

ErikEJ commented May 26, 2018

System.ArgumentException: Absolute path information is required.

I am not able to reproduce, could you share a project that causes this issue to oocur?

@ErikEJ
Copy link
Owner

ErikEJ commented May 26, 2018

It would be awesome to have the tool create a db context from a given model (namespace). I feel that is missing. Reverse engineering works very good. Just could use some help in code first scenario

Could you clarify this with an example, I do not understand this

@psijkof
Copy link
Author

psijkof commented May 26, 2018

ConsoleApp1.zip

But basically what i did was, reverse engineer an existing database. build solution, use migration tool

@psijkof
Copy link
Author

psijkof commented May 26, 2018

As to code first: Maybe I'm missing something, but after I defined my model classes, I have to manually create a db context. It would be awesome to 'reverse engineer' the model classes and generate a dbcontext.

@ErikEJ
Copy link
Owner

ErikEJ commented May 26, 2018

As to code first: Maybe I'm missing something, but after I defined my model classes, I have to manually create a db context. It would be awesome to 'reverse engineer' the model classes and generate a dbcontext.

Never heard about that idea before - it is not so simple.. Suggest you file a seperate issue for that feature request.

@ErikEJ
Copy link
Owner

ErikEJ commented May 26, 2018

OK, this issue is just a bug (your test project is a .NET Core project, and I have not done enough testing with that project type)

@ErikEJ ErikEJ closed this as completed in 13cfa24 May 26, 2018
@ErikEJ
Copy link
Owner

ErikEJ commented May 26, 2018

Fixed in latest daily build, thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants