/// <summary> /// Deprecated Method for adding a new object to the Letters EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLetters(Letter letter) { base.AddObject("Letters", letter); }
/// <summary> /// Create a new Letter object. /// </summary> /// <param name="letterGuid">Initial value of the LetterGuid property.</param> /// <param name="letterInfoGuid">Initial value of the LetterInfoGuid property.</param> /// <param name="subject">Initial value of the Subject property.</param> /// <param name="htmlBody">Initial value of the HtmlBody property.</param> /// <param name="textBody">Initial value of the TextBody property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdUTC">Initial value of the CreatedUTC property.</param> /// <param name="lastModBy">Initial value of the LastModBy property.</param> /// <param name="lastModUTC">Initial value of the LastModUTC property.</param> /// <param name="isApproved">Initial value of the IsApproved property.</param> /// <param name="approvedBy">Initial value of the ApprovedBy property.</param> /// <param name="sendCount">Initial value of the SendCount property.</param> public static Letter CreateLetter(global::System.Guid letterGuid, global::System.Guid letterInfoGuid, global::System.String subject, global::System.String htmlBody, global::System.String textBody, global::System.Guid createdBy, global::System.DateTime createdUTC, global::System.Guid lastModBy, global::System.DateTime lastModUTC, global::System.Boolean isApproved, global::System.Guid approvedBy, global::System.Int32 sendCount) { Letter letter = new Letter(); letter.LetterGuid = letterGuid; letter.LetterInfoGuid = letterInfoGuid; letter.Subject = subject; letter.HtmlBody = htmlBody; letter.TextBody = textBody; letter.CreatedBy = createdBy; letter.CreatedUTC = createdUTC; letter.LastModBy = lastModBy; letter.LastModUTC = lastModUTC; letter.IsApproved = isApproved; letter.ApprovedBy = approvedBy; letter.SendCount = sendCount; return letter; }