Click here to Skip to main content
15,886,258 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 36.9K   770   41  
Xenta architecture overview
using System;
using SiberTek.Xenta.Enums;

namespace SiberTek.Xenta.Data.Entities
{
    /// <summary>
    /// Represents an poll answer entity
    /// </summary>
    public class PollAnswerData : DataEntityBase
    {
        #region Fields
        private int _answerID;
        private int _pollID;
        private string _title;
        private int _count;
        private int _displayOrder;
        private DateTime _createdOn;
        private DateTime _updatedOn;
        #endregion

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

        public PollAnswerData(int answerID, int pollID, string title, int count, int displayOrder, DateTime createdOn, DateTime updatedOn)
        {
            _answerID = answerID;
            _pollID = pollID;
            _title = title;
            _count = count;
            _displayOrder = displayOrder;
            _createdOn = createdOn;
            _updatedOn = updatedOn;
        }
        #endregion

        #region Properties
        public int AnswerID
        {
            get
            {
                return _answerID;
            }
            set
            {
                _answerID = value;
            }
        }

        public int PollID
        {
            get
            {
                return _pollID;
            }
            set
            {
                _pollID = value;
            }
        }

        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        public int Count
        {
            get
            {
                return _count;
            }
            set
            {
                _count = value;
            }
        }

        public int DisplayOrder
        {
            get
            {
                return _displayOrder;
            }
            set
            {
                _displayOrder = 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