[MetadataType(typeof(SalesPersonMetadata))]
[Table("SalesPerson")]
public partial class SalesPerson
{
[Key]
public int Id { get; set; }
[StringLength(100)]
public string Name { get; set; } = null!;
[Column(TypeName = "datetime")]
public DateTime CreatedDate { get; set; }
public bool Deactivated { get; set; }
}
public class SalesPersonMetadata
{
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
}