DD.WellWorkover.Cloud/AsbCloudDb/Model/NotificationTransport.cs

20 lines
685 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model;
[Table("t_notification_transport"), Comment("Способ доставки уведомлений")]
public class NotificationTransport : IId
{
[Key]
[Column("id")]
public int Id { get; set; }
[Column("name"), Comment("Название способа доставки уведомлений")]
public string Name { get; set; } = null!;
[InverseProperty(nameof(Notification.NotificationTransport))]
public virtual ICollection<Notification> Notifications { get; set; } = null!;
}