Comments (10)
Is your project a Shared library project? Never done any testing with that, so very surprised if it should work
from efcorepowertools.
It is indeed. Sorry, I didn't realize that had not been tested. Is there some other project type I can/should use that is not an application?
from efcorepowertools.
C# class library
from efcorepowertools.
OK, my apologies, I misspoke. The project is a C# class library, not a shared library. I have never created or worked on C# shared library I (mistakenly) assumed that in C# they were the same thing.
from efcorepowertools.
Can you share your project, and I can investigate? You can email me privately?
from efcorepowertools.
Could you make sure Visual Studio is up to date - the version number you are reporting looks old or wrong
from efcorepowertools.
My Visual Studio Version is the very latest Community 15.7.3 (what I erroneously typed above was.NET Framework version - sorry for a second mistake)
Unfortunately I cannot seem locate an email address for you in your contact (I'm sure I'm missing it) so I have attached the project here as a ZIP file. It's has a simple DBContext that exposes one DbSet of a class called "User"
- It uses a SqlServer localDB instance I set up called TESTEFCOREDB
- It uses a datbase named "TestEFCorePowerTools"
- I deleted the packages subdirectory to keep the size reasonable. You can restore them from the Package Manager Console
Again, with this test project I can do an "add-migration init" and "update-database" no problems. I can also build it with no problems. It's just that when I choose "View DbContext Model DDL/SQL" from the EFCore Power Tools context menu that I get there error about the wrong version of ValueTuple
from efcorepowertools.
I should also say you may email me directly at [email protected]
from efcorepowertools.
This works for me in the latest daily build, and was a bug - thanks for reporting this
from efcorepowertools.
@ErikEJ i'm having the same issue.
System.IO.FileNotFoundException: Could not load file or assembly 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. O sistema não pode encontrar o arquivo especificado.
File name: 'System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitForeignKey(ModelBuilder modelBuilder, DatabaseForeignKey foreignKey)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitForeignKeys(ModelBuilder modelBuilder, IList`1 foreignKeys)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.VisitDatabaseModel(ModelBuilder modelBuilder, DatabaseModel databaseModel)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.RelationalScaffoldingModelFactory.Create(DatabaseModel databaseModel, Boolean useDatabaseNames)
at Microsoft.EntityFrameworkCore.Scaffolding.Internal.ReverseEngineerScaffolder.ScaffoldModel(String connectionString, IEnumerable`1 tables, IEnumerable`1 schemas, String namespace, String language, String contextDir, String contextName, ModelReverseEngineerOptions modelOptions, ModelCodeGenerationOptions codeOptions)
at ReverseEngineer20.EfCoreReverseEngineer.GenerateFiles(ReverseEngineerOptions reverseEngineerOptions)
at EFCorePowerTools.Handlers.ReverseEngineerHandler.<ReverseEngineerCodeFirst>d__2.MoveNext() in C:\projects\efcorepowertools\src\GUI\EFCorePowerTools\Handlers\ReverseEngineerHandler.cs:line 153
And i'm using the latest build 1.0.651
and Visual Studio 2017 Version 15.8.2
.
What solve @jmoleary problem?
from efcorepowertools.
Related Issues (20)
- Feature|Question: Is there FileTable support? Is there plans to? HOT 3
- Collection has incorrect name in class generated from many-to-many relationship is a foreign key column is not named xxxId HOT 1
- Unable to use migration tool when database and application is split into muliple assemblies HOT 1
- Exception on database context Editing and Refreshing in Visual Studio HOT 2
- Request for EFCorePowerTools for EF Core 3.1 HOT 2
- EF Core Power Tools not working HOT 10
- [Bug] Error trying to create model from database HOT 10
- Run out of Memory Error HOT 3
- Command line usage documentation HOT 2
- Map Postgres stored procedures and functions HOT 1
- Eager Loading (Include) Not Working with reverse engineer, it returning related entity as empty {} HOT 1
- Crashed for create reverse engineering for PostgreSQL HOT 4
- T4 Template not found? HOT 14
- Oracle - reverse engineering - Database objects are still processing and not displayed at all HOT 1
- Duplicated configuration classes when using EntityTypeConfiguration.t4 HOT 10
- can't install on Microsoft Visual Studio Enterprise 2022 (ARM 64-bit) - Current Version 17.9.5 HOT 4
- SQL Server procedures - named parameters HOT 3
- Table Renaming is not working (or im doing wrong?) HOT 6
- #nullable -annotations not set for procedures HOT 9
- Unable to get result set shape for dbo.SP_* HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efcorepowertools.