Пример #1
0
        /// <summary>
        /// no. 2 constructor that takes a position id, gets it from the db and builds an object.
        /// </summary>
        public ProjectPos(int id)
        {
            DataRow posFields = ProjectDB.GetPosition(id);

            this.id     = id;
            this.userID = (int)posFields["UserID"];
            Profession pos_prof = new Profession((int)posFields["Profession"], "none", "none");

            this.profession = pos_prof;
        }