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

namespace SiberTek.Xenta.Data.Entities
{
    /// <summary>
    /// Represents an user entity
    /// </summary>
    public class UserData : DataEntityBase
    {
        #region Fields
        private int _userID;
        private Guid _guid;
        private string _username;
        private string _firstName;
        private string _lastName;
        private Gender _gender;
        private DateTime? _birthDate;
        private string _email;
        private string _comment;
        private string _passwordHash;
        private string _passwordSalt;
        private int _languageID;
        private int _currencyID;
        private int _timeZoneID;
        private int _countryID;
        private bool _isActive;
        private DateTime _createdOn;
        private DateTime _updatedOn;
        #endregion

        #region Constructors
        public UserData() : this(0, Guid.Empty, String.Empty, String.Empty, String.Empty, Gender.NotDefined, null, String.Empty, String.Empty, String.Empty, String.Empty, 0, 0, 0, 0, false, DateTime.UtcNow, DateTime.UtcNow)
        {
        }

        public UserData(int userID, Guid guid, string username, string firstName, string lastName, Gender gender, DateTime? birthDate, string email, string comment, string passwordHash, string passwordSalt, int languageID, int currencyID, int timeZoneID, int countryID, bool isActive, DateTime createdOn, DateTime updatedOn)
        {
            _userID = userID;
            _guid = guid;
            _username = username;
            _firstName = firstName;
            _lastName = lastName;
            _gender = gender;
            _birthDate = birthDate;
            _email = email;
            _comment = comment;
            _passwordHash = passwordHash;
            _passwordSalt = passwordSalt;
            _languageID = languageID;
            _currencyID = currencyID;
            _timeZoneID = timeZoneID;
            _countryID = countryID;
            _isActive = isActive;
            _createdOn = createdOn;
            _updatedOn = updatedOn;
        }
        #endregion

        #region Properties
        public int UserID
        {
            get
            {
                return _userID;
            }
            set
            {
                _userID = value;
            }
        }

        public Guid Guid
        {
            get
            {
                return _guid;
            }
            set
            {
                _guid = value;
            }
        }

        public string Username
        {
            get
            {
                return _username;
            }
            set
            {
                _username = value;
            }
        }

        public string FirstName
        {
            get
            {
                return _firstName;
            }
            set
            {
                _firstName = value;
            }
        }

        public string LastName
        {
            get
            {
                return _lastName;
            }
            set
            {
                _lastName = value;
            }
        }

        public Gender Gender
        {
            get
            {
                return _gender;
            }
            set
            {
                _gender = value;
            }
        }

        public DateTime? BirthDate
        {
            get
            {
                return _birthDate;
            }
            set
            {
                _birthDate = value;
            }
        }

        public string Email
        {
            get
            {
                return _email;
            }
            set
            {
                _email = value;
            }
        }

        public string Comment
        {
            get
            {
                return _comment;
            }
            set
            {
                _comment = value;
            }
        }

        public string PasswordHash
        {
            get
            {
                return _passwordHash;
            }
            set
            {
                _passwordHash = value;
            }
        }

        public string PasswordSalt
        {
            get
            {
                return _passwordSalt;
            }
            set
            {
                _passwordSalt = value;
            }
        }

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

        public int CurrencyID
        {
            get
            {
                return _currencyID;
            }
            set
            {
                _currencyID = value;
            }
        }

        public int TimeZoneID
        {
            get
            {
                return _timeZoneID;
            }
            set
            {
                _timeZoneID = value;
            }
        }

        public int CountryID
        {
            get
            {
                return _countryID;
            }
            set
            {
                _countryID = value;
            }
        }

        public bool IsActive
        {
            get
            {
                return _isActive;
            }
            set
            {
                _isActive = 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