Skip to content

Conversation

ArnaudB88
Copy link

@ArnaudB88 ArnaudB88 commented Mar 22, 2024

Resolves #547
Add an option to add attributes on navigation properties in the generated entity classes.

YAML usage:

data:
  entity:
    relationshipAttributes: 'Ignore'

Code generation result:

public partial class Project
{
    #region Generated Relationships
    [Ignore]
    public virtual ICollection<Item> Items { get; set; }
    #endregion
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add option to add attributes on navigation properties for the entity
1 participant