Ejemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Corresponcences EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToCorresponcences(Corresponcence corresponcence)
 {
     base.AddObject("Corresponcences", corresponcence);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new Corresponcence object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="ownerID">Initial value of the OwnerID property.</param>
 /// <param name="ownerType">Initial value of the OwnerType property.</param>
 /// <param name="corresponcenceTypeID">Initial value of the CorresponcenceTypeID property.</param>
 /// <param name="emailType">Initial value of the EmailType property.</param>
 /// <param name="fromAddress">Initial value of the FromAddress property.</param>
 /// <param name="toAddress">Initial value of the ToAddress property.</param>
 /// <param name="message">Initial value of the Message property.</param>
 /// <param name="subject">Initial value of the Subject property.</param>
 /// <param name="date">Initial value of the Date property.</param>
 /// <param name="userID">Initial value of the UserID property.</param>
 public static Corresponcence CreateCorresponcence(global::System.Guid id, global::System.Guid ownerID, global::System.String ownerType, global::System.Guid corresponcenceTypeID, global::System.String emailType, global::System.String fromAddress, global::System.String toAddress, global::System.String message, global::System.String subject, global::System.DateTime date, global::System.Guid userID)
 {
     Corresponcence corresponcence = new Corresponcence();
     corresponcence.ID = id;
     corresponcence.OwnerID = ownerID;
     corresponcence.OwnerType = ownerType;
     corresponcence.CorresponcenceTypeID = corresponcenceTypeID;
     corresponcence.EmailType = emailType;
     corresponcence.FromAddress = fromAddress;
     corresponcence.ToAddress = toAddress;
     corresponcence.Message = message;
     corresponcence.Subject = subject;
     corresponcence.Date = date;
     corresponcence.UserID = userID;
     return corresponcence;
 }
Ejemplo n.º 3
0
        public CorrespondenceModel(Corresponcence correspondence)
        {
            _correspondence = correspondence;

            if (correspondence.CorresponcenceType != null)
                _corresponcenceType = _correspondence.CorresponcenceType;
            if (correspondence.Contact != null)
                _contactTo = new ContactModel(correspondence.Contact);

            Documents = new ObservableCollection<Document>();
        }