-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 requestNew feature or request