Giter Site home page Giter Site logo

Comments (21)

itsmekoopa avatar itsmekoopa commented on June 16, 2024 1

Awesome! Version .233 installs and generates the DB models. I've used the 'Reverse engineer' option from context menu.

Want me to try the other options as well? I can do that next Monday.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

It is not Community vs other SKUs that is causing issues, it is ARM support that is not present.

Let me investigate if it it possible to bring back support , provided you can beta test for me.

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

That would be great! I'd love to beta test. Please let me know what I can do.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

When I have a build ready, exercise all the product features (all menu items)

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Sure thing!

I've been using an older build of EF Core Power Tools (EF_Core_Power_Tools_v2.5.537.vsix from March 1, 2021). That version was working on my ARM machine until I updated Visual Studio today.

That's why I uninstalled the old EF CPT build: to try to reinstall the latest build. Uninstall went flawless, installing the new version however... not. ;-)

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Got it. I attempted ARM support (someone else did) but it was causing me support headaches.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

I implemented a fix for this in the latest daily build, would be grateful if you could try it out.

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Great! Installer is running, but gives the following message:

image

I guess that's due to these pre requisites:

image

Is there a way to install these manually?

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

I think it is the DGML component, I plan to add that as a pre-req in "EF Core Power Pack" instead.

Try build .132 (where I have removed it)

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

You mean this version (.232)?
https://www.vsixgallery.com/extension/f4c4712c-ceae-4803-8e52-0e2049d5de9f

Gives me the same error message.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

OK, looks like the VisualStudioData component was a mistake, I have tried picking another in the latest build, if that does not work I will try to remove it-.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Build .233 coming up

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Can you test reverse engineer with a .dacpac?

And feel free to try the other options, less concerned about them tbh.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

@itsmekoopa Thank you som much for help with testing this - last attempt failed since there was not testing follow up.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

If you like my free tools, I would be very grateful for a rating or review on Visual Studio Marketplace or even a one-time or monthly sponsorship

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Sure, I'll give it a shot next week. And thank you too, your tools make my daily job a lot easier.

I'll drop you a review and donation!

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Reverse engineering a .dacpac file works. However, a particular error occurs. When generating from an SQL connection, it works.

Probleems seems to be caused by SPs with inner queries, querying a table more than once:

image

Resulting in this error:

Unable to get result set shape for dbo.jam_GetGroepByID
System.ArgumentException: An item with the same key has already been added. Key: rd
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at SqlSharpener.AliasResolutionVisitor.Visit(NamedTableReference namedTableReference) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\SqlSharpener\AliasResolutionVisitor.cs:line 22
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(NamedTableReference node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.NamedTableReference.Accept(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.FromClause.AcceptChildren(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(FromClause node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.FromClause.Accept(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.QuerySpecification.AcceptChildren(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(QuerySpecification node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.QuerySpecification.Accept(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.ScalarSubquery.AcceptChildren(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(ScalarSubquery node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.ScalarSubquery.Accept(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.SelectScalarExpression.AcceptChildren(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(SelectScalarExpression node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.SelectScalarExpression.Accept(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.QuerySpecification.AcceptChildren(TSqlFragmentVisitor visitor)
   at Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragmentVisitor.ExplicitVisit(QuerySpecification node)
   at Microsoft.SqlServer.TransactSql.ScriptDom.QuerySpecification.Accept(TSqlFragmentVisitor visitor)
   at SqlSharpener.Model.Select..ctor(QuerySpecification querySpecification, IDictionary`2 bodyColumnTypes) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\SqlSharpener\Model\Select.cs:line 38
   at SqlSharpener.Model.Procedure.<>c__DisplayClass0_0.<.ctor>b__7(QuerySpecification s) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\SqlSharpener\Model\Procedure.cs:line 54
   at System.Linq.Enumerable.SelectEnumerableIterator`2.ToList()
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at SqlSharpener.Model.Procedure..ctor(TSqlObject tSqlObject) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\SqlSharpener\Model\Procedure.cs:line 54
   at ErikEJ.EntityFrameworkCore.SqlServer.Scaffolding.SqlServerDacpacStoredProcedureModelFactory.GetStoredProcedureResultElements(TSqlProcedure proc) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\Scaffolding\SqlServerDacpacStoredProcedureModelFactory.cs:line 160
   at ErikEJ.EntityFrameworkCore.SqlServer.Scaffolding.SqlServerDacpacStoredProcedureModelFactory.GetStoredProcedures(String dacpacPath, ModuleModelFactoryOptions options, Boolean mergeDacpacs) in C:\Code\Github\EFCorePowerTools\src\Nupkg\ErikEJ.EntityFrameworkCore.SqlServer.Dacpac\Scaffolding\SqlServerDacpacStoredProcedureModelFactory.cs:line 65

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Ok, you would get that error anyway due to the shape of your stored procedure. Feel free to open a new issue with repro details if you want me to investigate. And thanks for testing

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Hmm, ok. It seems to work when generating from an SQL connection. Was working in the older version of EF CPT as well. I'll try this out next week, when my project is building + running again. :-)

from efcorepowertools.

itsmekoopa avatar itsmekoopa commented on June 16, 2024

Difference between dacpac and SQL connection is that the latter IS generating the model files, while the former doesn't.

from efcorepowertools.

ErikEJ avatar ErikEJ commented on June 16, 2024

Feel free to open an issue with repro details

from efcorepowertools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.