This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Table("Vehicles")] | |
public class Vehicle | |
{ | |
[PrimaryKey, AutoIncrement] | |
public int Id { get; set; } | |
public string Brand { get; set; } | |
public DateTime ProductionDate { get; set; } | |
public decimal EngineCapacity { get; set; } | |
[ForeignKey(typeof(RegistrationCertificate))] | |
public int RegistrationCertificateId { get; set; } | |
[OneToOne] | |
public RegistrationCertificate RegistrationCertificate { get; set; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment