[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