Skip to content

Instantly share code, notes, and snippets.

@dsibinski

dsibinski/Vehicle.cs

Last active May 21, 2017
Embed
What would you like to do?
[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