Click here to Skip to main content
15,894,410 members
Articles / Web Development / ASP.NET

Open Source Extensible Enterprise n-tier Application Framework with Multilayered Architecture

Rate me:
Please Sign up or sign in to vote.
4.67/5 (2 votes)
3 Dec 2010MIT3 min read 37K   770   41  
Xenta architecture overview
using System;
using SiberTek.Xenta.Enums;

namespace SiberTek.Xenta.Data.Entities
{
    /// <summary>
    /// Represents an message template entity
    /// </summary>
    public class MessageTemplateData : DataEntityBase
    {
        #region Fields
        private int _templateID;
        private int _languageID;
        private string _name;
        private string _from;
        private string _to;
        private string _bccTo;
        private string _subject;
        private string _text;
        private DateTime _createdOn;
        private DateTime _updatedOn;
        #endregion

        #region Constructors
        public MessageTemplateData() : this(0, 0, String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, String.Empty, DateTime.UtcNow, DateTime.UtcNow)
        {
        }

        public MessageTemplateData(int templateID, int languageID, string name, string from, string to, string bccTo, string subject, string text, DateTime createdOn, DateTime updatedOn)
        {
            _templateID = templateID;
            _languageID = languageID;
            _name = name;
            _from = from;
            _to = to;
            _bccTo = bccTo;
            _subject = subject;
            _text = text;
            _createdOn = createdOn;
            _updatedOn = updatedOn;
        }
        #endregion

        #region Properties
        public int TemplateID
        {
            get
            {
                return _templateID;
            }
            set
            {
                _templateID = value;
            }
        }

        public int LanguageID
        {
            get
            {
                return _languageID;
            }
            set
            {
                _languageID = value;
            }
        }

        public string Name
        {
            get
            {
                return _name;
            }
            set
            {
                _name = value;
            }
        }

        public string From
        {
            get
            {
                return _from;
            }
            set
            {
                _from = value;
            }
        }

        public string To
        {
            get
            {
                return _to;
            }
            set
            {
                _to = value;
            }
        }

        public string BccTo
        {
            get
            {
                return _bccTo;
            }
            set
            {
                _bccTo = value;
            }
        }

        public string Subject
        {
            get
            {
                return _subject;
            }
            set
            {
                _subject = value;
            }
        }

        public string Text
        {
            get
            {
                return _text;
            }
            set
            {
                _text = value;
            }
        }

        public DateTime CreatedOn
        {
            get
            {
                return _createdOn;
            }
            set
            {
                _createdOn = value;
            }
        }

        public DateTime UpdatedOn
        {
            get
            {
                return _updatedOn;
            }
            set
            {
                _updatedOn = value;
            }
        }
        #endregion
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions