using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace FoodsharingSiegen.Contracts.Entity { /// /// The prospect class (a. beging, 21.05.2022) /// public class Prospect { #region Public Properties /// /// Gets the value of the complete (ab) /// [NotMapped] public bool Complete => Interactions?.Any(x => x.Type == InteractionType.Complete) == true; /// /// Gets or sets the value of the created (ab) /// public DateTime Created { get; set; } /// /// Gets or sets the value of the fs id (ab) /// public int FsId { get; set; } /// /// Gets or sets the value of the id (ab) /// [Key] public Guid Id { get; set; } /// /// Gets or sets the value of the interactions (ab) /// public IList Interactions { get; set; } /// /// Gets or sets the value of the memo (ab) /// public string? Memo { get; set; } /// /// Gets or sets the value of the name (ab) /// public string Name { get; set; } #endregion } }