In Entity Framework, what attribute is commonly used to mark a class as a Complex Type?

  • [ComplexType]
  • [ForeignKey]
  • [Key]
  • [NotMapped]
In Entity Framework, the [ComplexType] attribute is commonly used to mark a class as a Complex Type. This attribute tells Entity Framework that the class should be treated as a complex type rather than an entity. Complex types are typically used to represent non-entity objects that are embedded within other entities.
Add your answer
Loading...

Leave a comment

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