<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0-preview.4.20251.6" />

System.ComponentModel.DataAnnotations.Schema.TableAttribute

public class TableAttribute : Attribute
Specifies the database table that a class is mapped to.
public string Name { get; }

Gets the name of the table the class is mapped to.

public string Schema { get; set; }

Gets or sets the schema of the table the class is mapped to.

public TableAttribute(string name)

Initializes a new instance of the TableAttribute class using the specified name of the table.