Skip to content
Snippets Groups Projects
MessageTemplate.cs 629 B
Newer Older
  • Learn to ignore specific revisions
  • Vaclav Svaton's avatar
    Vaclav Svaton committed
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    
    namespace HaaSMiddleware.DomainObjects.Notifications {
    	[Table("MessageTemplate")]
    	public class MessageTemplate : IdentifiableDbEntity {
    		[Required]
    		[StringLength(50)]
    		public string Name { get; set; }
    
    		[Required]
    		[StringLength(200)]
    		public string Description { get; set; }
    
    		public NotificationEvent Event { get; set; }
    
    		public virtual ICollection<MessageLocalization> Localizations { get; set; }
    
    		public virtual ICollection<MessageTemplateParameter> Parameters { get; set; }
    	}
    }