Skip to content

Instantly share code, notes, and snippets.

@dsibinski
Last active May 21, 2017 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsibinski/7ad52df0e33b6a871c1c46f3e0e2dad0 to your computer and use it in GitHub Desktop.
Save dsibinski/7ad52df0e33b6a871c1c46f3e0e2dad0 to your computer and use it in GitHub Desktop.
[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