Exemple #1
0
        ///<summary>
        /// A simple factory method to create a new <see cref="VwInstitutes"/> instance.
        ///</summary>
        ///<param name="_instituteId"></param>
        ///<param name="_instituteName"></param>
        ///<param name="_description"></param>
        ///<param name="_instituteDean"></param>
        ///<param name="_createtime"></param>
        ///<param name="_createUserId"></param>
        ///<param name="_status"></param>
        ///<param name="_userId"></param>
        ///<param name="_userName"></param>
        ///<param name="_userCnName"></param>
        ///<param name="_feBadgeId"></param>
        public static VwInstitutes CreateVwInstitutes(System.String _instituteId, System.String _instituteName, System.String _description, System.String _instituteDean, System.DateTime?_createtime, System.String _createUserId, System.Int32 _status, System.String _userId, System.String _userName, System.String _userCnName, System.String _feBadgeId)
        {
            VwInstitutes newVwInstitutes = new VwInstitutes();

            newVwInstitutes.InstituteId   = _instituteId;
            newVwInstitutes.InstituteName = _instituteName;
            newVwInstitutes.Description   = _description;
            newVwInstitutes.InstituteDean = _instituteDean;
            newVwInstitutes.Createtime    = _createtime;
            newVwInstitutes.CreateUserId  = _createUserId;
            newVwInstitutes.Status        = _status;
            newVwInstitutes.UserId        = _userId;
            newVwInstitutes.UserName      = _userName;
            newVwInstitutes.UserCnName    = _userCnName;
            newVwInstitutes.FeBadgeId     = _feBadgeId;
            return(newVwInstitutes);
        }
Exemple #2
0
        ///<summary>
        ///  Returns a Typed VwInstitutesBase Entity
        ///</summary>
        public virtual VwInstitutesBase Copy()
        {
            //shallow copy entity
            VwInstitutes copy = new VwInstitutes();

            copy.InstituteId   = this.InstituteId;
            copy.InstituteName = this.InstituteName;
            copy.Description   = this.Description;
            copy.InstituteDean = this.InstituteDean;
            copy.Createtime    = this.Createtime;
            copy.CreateUserId  = this.CreateUserId;
            copy.Status        = this.Status;
            copy.UserId        = this.UserId;
            copy.UserName      = this.UserName;
            copy.UserCnName    = this.UserCnName;
            copy.FeBadgeId     = this.FeBadgeId;
            copy.AcceptChanges();
            return((VwInstitutes)copy);
        }
Exemple #3
0
        /// <summary>
        /// Gets the property value by name.
        /// </summary>
        /// <param name="entity">The entity.</param>
        /// <param name="propertyName">Name of the property.</param>
        /// <returns></returns>
        public static object GetPropertyValueByName(VwInstitutes entity, string propertyName)
        {
            switch (propertyName)
            {
            case "InstituteId":
                return(entity.InstituteId);

            case "InstituteName":
                return(entity.InstituteName);

            case "Description":
                return(entity.Description);

            case "InstituteDean":
                return(entity.InstituteDean);

            case "Createtime":
                return(entity.Createtime);

            case "CreateUserId":
                return(entity.CreateUserId);

            case "Status":
                return(entity.Status);

            case "UserId":
                return(entity.UserId);

            case "UserName":
                return(entity.UserName);

            case "UserCnName":
                return(entity.UserCnName);

            case "FeBadgeId":
                return(entity.FeBadgeId);
            }
            return(null);
        }