You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mchsamples-.net-core/p08_BDD_EntityFramework/ex_042_013_OneToOne_FluentAPI/CarnetDeSante.cs

32 lines
697 B

using System;
namespace ex_042_013_OneToOne_FluentAPI
{
/// <summary>
/// CarnetDeSante est une classe POCO, i.e. Plain Old CLR Object
/// Elle a une relation 1-1 avec la classe Nounours via la propriété Owner.
/// </summary>
public class CarnetDeSante
{
public int UniqueId
{
get; set;
}
public DateTime LastModified
{
get; set;
}
public Nounours Owner
{
get; set;
}
public override string ToString()
{
return $"{UniqueId} : carnet de {Owner.Nom}, modifié la dernière fois le {LastModified.ToString("d")}";
}
}
}