The _________ attribute in EF Core can be used to ignore a particular property from being mapped to a database column.

  • [NotMapped]
  • [DatabaseGenerated]
  • [Key]
  • [Required]
The [NotMapped] attribute in Entity Framework Core is used to specify that a property of an entity should not be mapped to a database column. This is useful when you have properties in your entity that are not supposed to be stored in the database.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *