Comments (6)
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.
Hi @Simke11, issue is fixed. Published NuGet package Beef.CodeGen.Core
version 4.1.7
. Cheers...
from beef.
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.
@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.
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.
@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)
- DataMapping IndexOutOfRangeException exception for incorrect filed names. HOT 1
- Cant add people from middle ages to Beef.Demo
- Sql Text/NText columns cant be used in the Cdc Code Generator as they arent mapped to a .NET type HOT 1
- In the Demo project, RegenerateAll.ps1 changes working directory HOT 1
- Feature idea - redirect from / to swagger
- Feature idea - docker-compose/tye file for running Mr.Hr sample with SQL database
- Feature Request - Asynchronous Call Integrity HOT 2
- Namespaces conflict has occured when creating "User" entity with Cosmos DB HOT 1
- Cosmos DB "PartitionKey has fewer components than defined the collection resource." error in Azure App Service HOT 1
- AgentTester RegisterBeforeRequest ineffective withhin test class.
- .ExpectChangeLogCreated( ) fails when API takes a little longer to return value. HOT 3
- membersToIgnore parameter of ExpectEvent<T>( ) doesn't work HOT 3
- OmitEntityBase breaks entities when used with a custom PathCommon HOT 1
- Merging reference data does not work when using multibyte-charractors HOT 1
- idea: Add conditional branching based on the existence of an ExtraProperty item and an item value to the template in Demo sample.
- Project naming could create confusion with existing "BeEF" public project HOT 1
- Test fails: 'The configured user limit (128) on the number of inotify instances has been reached, or the per-process limit on the number of open file descriptors has been reached' HOT 3
- OpenAPI (Swagger) contains unnecessary models HOT 1
- PagingArgs parameter does not recognized by OpenAPI (Swagger) HOT 3
- Security Policy violation Outside Collaborators HOT 46
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 beef.