Skip to content

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

Open
@radrad

Description

@radrad

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions