Giter Club home page Giter Club logo

Comments (8)

circles-arrows avatar circles-arrows commented on September 24, 2024

Hello Ed,

Thank you for trying out Blueprint41 and thank you for reporting the issue!

I think I was able to replicate your issue. I hope this will work for you:

  • First compile/build the HelloWorld.Generated project (and make sure you have zero errors).
  • Then try to run the custom tool in the HelloWorld.Generated project.

One more thing, I noticed that you're using version 1.0.12 of Blueprint41, which contains a bug thats fixed in version 1.0.13. Please upgrade your Blueprint41 in Visual Studio: Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution -> Updates

Let me know if you need any further assistance.

Good Luck,
Ren

from blueprint41.

EdMcdaniel avatar EdMcdaniel commented on September 24, 2024

from blueprint41.

circles-arrows avatar circles-arrows commented on September 24, 2024

Hello Ed,

You're right, I am not sure how it got broken and why it was working on my computer at work, but I get the same result on my computer at home... I'll double check & fix the plugin when I have some time (will post here when it's fixed), but for now I can give you a workaround:

Edit the HelloWorld.Model it's project file to include the CopyLocalLockFileAssemblies option. After you edited it, it should look as follows:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Blueprint41" Version="1.*" />
  </ItemGroup>

</Project>

Edit the Generated.tt file to look like this:
<#@ template language="C#" hostSpecific="true" debug="true" #>
<#@ assembly name="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\System.CodeDom.dll" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\Blueprint41.dll" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\HelloWorld.Model.dll" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="Blueprint41.DatastoreTemplates" #>
<#@ output extension=".txt" #>
<#
    try
    {
        Generator.Execute<HelloWorld.Model.Datastore>(
            new GeneratorSettings(
                Path.GetDirectoryName(Host.TemplateFile),
                "Domain.Data"
            )
        );
#>
Success!
<#
    }
        catch (Exception e)
    {
#>
Error Message: <#= e.Message #>
Stack Trace:
<#= e.StackTrace #>
<#
    }
#>

from blueprint41.

EdMcdaniel avatar EdMcdaniel commented on September 24, 2024

Thanks for the work around, it worked. I can move forward with the getting started tutorial.
Ed

from blueprint41.

EdMcdaniel avatar EdMcdaniel commented on September 24, 2024

I found another issue.

I was able to use your workaround and execute Run Custom Tool without error. Went on to Blueprint CRUD. When I try to debug my HelloWorld application the code in HelloWorld Program.cs Main throws an error on the line;

model.Execute(true);

Error Message = There is no procedure with the name blueprint41.functionalid.list registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

I searched the Blueprint41 assembly using Visual Studio Object Browser and did not see the functionalid.list property or method.

Am I looking in the right place?

Ed

from blueprint41.

circles-arrows avatar circles-arrows commented on September 24, 2024

Hello Ed,

I think you didn't install the "Blueprint41 plugin" into Neo4j. Instructions on how to do that can be found here: https://github.com/circles-arrows/blueprint41/wiki/Extension-and-Plugins#neo4j-plugins

The plugin adds functionality to Neo4j for generating unique id's, similar to auto-increment primary keys in relational databases.
The APOC plugin is used by Bluerint41 to implement the free-text search feature. I suspect you can get away with not installing that plugin into Neo4j till you need that functionality.

from blueprint41.

EdMcdaniel avatar EdMcdaniel commented on September 24, 2024

With the help of your work-arounds and my installing addins properly I now have a working console app using Blueprint41, thank you.
Ed

As a suggestion it would be nice if your getting started tutorial had another section to demonstrate how to edit the code in the HelloWorld console app to use the model generated in the Blueprint41 Graph Modeler tutorial.

from blueprint41.

circles-arrows avatar circles-arrows commented on September 24, 2024

That is great news Ed!

I updated the plugin to solve the issues/bugs you encountered and your suggestion is added to the list of improvements to the getting started documentation.

If you have any more suggestions for the documentation, blueprint41 or the modeller, please let me know. Feedback is vital to improving!

from blueprint41.

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.