telosys-tools-bricks / telosys-cli

Telosys CLI - Command Line Interface
https://www.telosys.org/
GNU Lesser General Public License v3.0
166 stars 23 forks source link

Allow passing typed arguments to inherited class like public class Event : FullAuditedAggregateRoot<int> #26

Open radrad opened 2 years ago

radrad commented 2 years ago

Hi Lauren You mentioned that you will add a feature to allow to use typed parameters for inhereted class like Event: public class Event : FullAuditedAggregateRoot or public class Event : FullAuditedAggregateRoot

Here there are some inhereted properties and one of them is Id which becomes Guid type as concrete type or int depending on how you pass concrete type parameter. Please add it in version 4 as well as Guid type. It is ugly do use tags to skip Id field when looping over attributes since it is implicitly defined.

https://stackoverflow.com/questions/70092361/generating-class-in-c-sharp-that-inherits-a-generic-class-which-uses-type-parame Your comment: Regarding the class, for the moment there are no annotations (or tags) at the entity level (it will happen soon).

We also don't have ability do desigate what base class we want to inherit. In abp.io framework I have ability to do this: public class Event : AggregateRoot public class Event : Entity

I have to use some external .json file to provide extra metadata

Thanks Rad