bump sdk to net-9
This commit is contained in:
parent
0279ee3df4
commit
5998c474af
30 changed files with 372 additions and 1067 deletions
|
|
@ -1,6 +1,7 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using RazorEngine.Templating;
|
||||
using Yavsc.Attributes.Validation;
|
||||
using Yavsc.Models;
|
||||
using Yavsc.Models.Calendar;
|
||||
|
|
@ -8,7 +9,7 @@ using Yavsc.Server.Models.Calendar;
|
|||
|
||||
namespace Yavsc.Server.Models.EMailing
|
||||
{
|
||||
public class MailingTemplate : ITrackedEntity
|
||||
public class MailingTemplate : ITrackedEntity, ITemplateSource
|
||||
{
|
||||
/// <summary>
|
||||
/// Date Created
|
||||
|
|
@ -41,7 +42,6 @@ namespace Yavsc.Server.Models.EMailing
|
|||
[EmailAddress()]
|
||||
public string ReplyToAddress { get; set; }
|
||||
|
||||
|
||||
public Periodicity ToSend { get; set; }
|
||||
|
||||
public string UserCreated
|
||||
|
|
@ -55,5 +55,13 @@ namespace Yavsc.Server.Models.EMailing
|
|||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Template => Body;
|
||||
public string TemplateFile { get => Id; }
|
||||
|
||||
public TextReader GetTemplateReader()
|
||||
{
|
||||
return new StringReader(Body);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue