Git Product home page Git Product logo

Comments (6)

Simke11 avatar Simke11 commented on May 26, 2024 1

Thanks! It was a "legacy" entity that someone else has already defined. It only implements a few custom methods in manager (and no data layer), so my first thought was that it could have just been implemented as a custom manager class outside of code gen.
I think it was done this way just because it was created by a new developer at a time and they must have thought that everything needs to be defined in codegen xml.
I've worked around compile issue by just adding a single property (which isn't used), but I'll change it to ExcludeEntity="true".
Since we can get around the compile issue, don't think the urgency is high on this one.

from beef.

chullybun avatar chullybun commented on May 26, 2024 1

Hi @Simke11, issue is fixed. Published NuGet package Beef.CodeGen.Core version 4.1.7. Cheers...

from beef.

edjo23 avatar edjo23 commented on May 26, 2024 1

Hi @chullybun, sorry for the late reply (I took some time off and went away for a week). I haven't had a chance to check it out yet. Will try and test it out soon.

from beef.

chullybun avatar chullybun commented on May 26, 2024

@Simke11 - first up, welcome back :-) I have a question based on your comment that you are generating an entity without any properties (only has operations), is why are you generating the entity itself - will it serve any purpose? Maybe you could exclude the entity code-gen itself, and only gen the operation-related artefacts. Use ExcludeEntity="true" code-gen attribute on the Entity - you will then need to manually remove the existing (redundant) file.

Aside from above thoughts, yes there is an issue with the template that needs correcting. Just trying to understand the urgency? Let me know whether the ExcludeEntity="true" will unblock you? Either way we'll keep this issue open until fixed.

Cheers...

from beef.

edjo23 avatar edjo23 commented on May 26, 2024

Hi @chullybun and @Simke11, I also hit this issue in another one of our solutions. Our scenario is that we have multiple entities that inherit a base entity, and in one inheritance scenario there are no additional properties added to the definition.

from beef.

chullybun avatar chullybun commented on May 26, 2024

@edjo23, did the latest NuGet update correct the issue? If not, I need a bit more information to be able to replicate.

from beef.

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.