Skip to content

Add support for generating metadata interfaces. #1

@AraHaan

Description

@AraHaan

Sometimes people create special interfaces for specific types to get those specific get only (or sometimes get & set) that basically forwards database mapped columns to an alias or even other use cases as well.

Goals:

  • The generated code would then now define the interfaces for the user inside of MetaData.yml provided in the user's project file.
  • That generated code can then optionally be added to the classes defined in MetaData.yml under a new section (Inherits) that will add such interfaces.
  • The interfaces do not have to be generated either, for example if one has in their MetaData.yml file for an "Account" one can use the ASP.NET Identity IUser<T> interface as well (where T is the type of the primary key in the database).

Pros:

  • People who place said Metadata attributes on database types generated by the source generator would no longer need a dedicated C# code file specifically for that freeing up some of the burden of manually maintaining said code.
  • No longer need to manually write any metadata for any future database entries either.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions