/// <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(VwStudents entity, string propertyName) { switch (propertyName) { case "StudentId": return(entity.StudentId); case "CreateTime": return(entity.CreateTime); case "Status": return(entity.Status); case "Notes": return(entity.Notes); case "Studies": return(entity.Studies); case "UserId": return(entity.UserId); case "UserName": return(entity.UserName); case "UserCnName": return(entity.UserCnName); case "DegreeId": return(entity.DegreeId); case "FeBadgeId": return(entity.FeBadgeId); case "Department": return(entity.Department); case "Email": return(entity.Email); case "ApplyDate": return(entity.ApplyDate); case "ApprovalofHuman": return(entity.ApprovalofHuman); case "ApproveofDate": return(entity.ApproveofDate); } return(null); }
///<summary> /// A simple factory method to create a new <see cref="VwStudents"/> instance. ///</summary> ///<param name="_studentId"></param> ///<param name="_createTime"></param> ///<param name="_status"></param> ///<param name="_notes"></param> ///<param name="_studies"></param> ///<param name="_userId"></param> ///<param name="_userName"></param> ///<param name="_userCnName"></param> ///<param name="_degreeId"></param> ///<param name="_feBadgeId"></param> ///<param name="_department"></param> ///<param name="_email"></param> ///<param name="_applyDate"></param> ///<param name="_approvalofHuman"></param> ///<param name="_approveofDate"></param> public static VwStudents CreateVwStudents(System.Int32 _studentId, System.DateTime?_createTime, System.Int32 _status, System.String _notes, System.Int32 _studies, System.String _userId, System.String _userName, System.String _userCnName, System.Int32 _degreeId, System.String _feBadgeId, System.String _department, System.String _email, System.DateTime?_applyDate, System.String _approvalofHuman, System.DateTime?_approveofDate) { VwStudents newVwStudents = new VwStudents(); newVwStudents.StudentId = _studentId; newVwStudents.CreateTime = _createTime; newVwStudents.Status = _status; newVwStudents.Notes = _notes; newVwStudents.Studies = _studies; newVwStudents.UserId = _userId; newVwStudents.UserName = _userName; newVwStudents.UserCnName = _userCnName; newVwStudents.DegreeId = _degreeId; newVwStudents.FeBadgeId = _feBadgeId; newVwStudents.Department = _department; newVwStudents.Email = _email; newVwStudents.ApplyDate = _applyDate; newVwStudents.ApprovalofHuman = _approvalofHuman; newVwStudents.ApproveofDate = _approveofDate; return(newVwStudents); }
///<summary> /// Returns a Typed VwStudentsBase Entity ///</summary> public virtual VwStudentsBase Copy() { //shallow copy entity VwStudents copy = new VwStudents(); copy.StudentId = this.StudentId; copy.CreateTime = this.CreateTime; copy.Status = this.Status; copy.Notes = this.Notes; copy.Studies = this.Studies; copy.UserId = this.UserId; copy.UserName = this.UserName; copy.UserCnName = this.UserCnName; copy.DegreeId = this.DegreeId; copy.FeBadgeId = this.FeBadgeId; copy.Department = this.Department; copy.Email = this.Email; copy.ApplyDate = this.ApplyDate; copy.ApprovalofHuman = this.ApprovalofHuman; copy.ApproveofDate = this.ApproveofDate; copy.AcceptChanges(); return((VwStudents)copy); }