MikeGriffinReborn / EntitySpaces

EntitySpaces - A Fluent SQL library for .NET
24 stars 20 forks source link

Studio - error when open a previously created proyect #34

Open paulcordova opened 2 years ago

paulcordova commented 2 years ago

When I create a new proyect and add themplates, generated code and save the project all works ok

BUT, when I open the previously created project file, I get this error And I coludn't open the project file and I must start from zero, :-(

I tested also with Studio version EntitySpacesStudio_20191.1218.0 and the error occurs too

thanks in advance

image

Error Message Object reference not set to an instance of an object.

at EntitySpaces.MetadataEngine.esSettings2010.SetDefaultSettings() at EntitySpaces.Common.esProject2010.Load(String fileNameAndFilePath, esSettings mainSettings) at EntitySpaces.Common.esProject.ConvertProject(String fileNameAndFilePath, esSettings settings) at EntitySpaces.Common.esProject.Load(String fileNameAndFilePath, esSettings mainSettings) at EntitySpaces.AddIn.ucProjects.OpenProject(String fileNameAndPath)

mattphi commented 2 years ago

Hi @paulcordova - I also noticed this and raised issue #17 and checked in a fix in my fork. I'm unable to run it though, so I'm running ES2012 code generator for now

paulcordova commented 2 years ago

Hi @mattphi Thanks for your quick responde :-)

I installed the ES2012 Studio, but I have the same error. Very strange image

But I noticied that that templates for 2012 vs 2019 diffiers for C# template Hierarchical.cs this changes will work fine if I replace the 2019 template into 2012? this is restricted if I colud run ES2012 studio again image

By other hand, I download your for Git repo, thanks for add support for Net6 in SqlServer. Ill test in the next days But I cant compile the assemblies for SqLite and MySql I get error this error in all them image Was a missing include for OverClause folder and is included files After that, both solutions complied ok image

Finally you know why the code for ESStudio is not published in the original repo ?

Thanks in advance for your time Regards