///<summary> /// Returns a Typed VwStudentCourseRelationBase Entity ///</summary> public virtual VwStudentCourseRelationBase Copy() { //shallow copy entity VwStudentCourseRelation copy = new VwStudentCourseRelation(); copy.StudentId = this.StudentId; copy.StudentNote = this.StudentNote; copy.Studies = this.Studies; copy.UserId = this.UserId; copy.UserName = this.UserName; copy.UserCnName = this.UserCnName; copy.AutoId = this.AutoId; copy.Updatetime = this.Updatetime; copy.CredentialsStyle = this.CredentialsStyle; copy.DegreeId = this.DegreeId; copy.DegreeCourseId = this.DegreeCourseId; copy.StudentStatus = this.StudentStatus; copy.FeBadgeId = this.FeBadgeId; copy.AttachmentFileStyle = this.AttachmentFileStyle; copy.AttachmentFilePath = this.AttachmentFilePath; copy.CourseId = this.CourseId; copy.UpdateUserId = this.UpdateUserId; copy.AcceptChanges(); return((VwStudentCourseRelation)copy); }
/// <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(VwStudentCourseRelation entity, string propertyName) { switch (propertyName) { case "StudentId": return(entity.StudentId); case "StudentNote": return(entity.StudentNote); case "Studies": return(entity.Studies); case "UserId": return(entity.UserId); case "UserName": return(entity.UserName); case "UserCnName": return(entity.UserCnName); case "AutoId": return(entity.AutoId); case "Updatetime": return(entity.Updatetime); case "CredentialsStyle": return(entity.CredentialsStyle); case "DegreeId": return(entity.DegreeId); case "DegreeCourseId": return(entity.DegreeCourseId); case "StudentStatus": return(entity.StudentStatus); case "FeBadgeId": return(entity.FeBadgeId); case "AttachmentFileStyle": return(entity.AttachmentFileStyle); case "AttachmentFilePath": return(entity.AttachmentFilePath); case "CourseId": return(entity.CourseId); case "UpdateUserId": return(entity.UpdateUserId); } return(null); }
///<summary> /// A simple factory method to create a new <see cref="VwStudentCourseRelation"/> instance. ///</summary> ///<param name="_studentId"></param> ///<param name="_studentNote"></param> ///<param name="_studies"></param> ///<param name="_userId"></param> ///<param name="_userName"></param> ///<param name="_userCnName"></param> ///<param name="_autoId"></param> ///<param name="_updatetime"></param> ///<param name="_credentialsStyle"></param> ///<param name="_degreeId"></param> ///<param name="_degreeCourseId"></param> ///<param name="_studentStatus"></param> ///<param name="_feBadgeId"></param> ///<param name="_attachmentFileStyle"></param> ///<param name="_attachmentFilePath"></param> ///<param name="_courseId"></param> ///<param name="_updateUserId"></param> public static VwStudentCourseRelation CreateVwStudentCourseRelation(System.Int32 _studentId, System.String _studentNote, System.Int32 _studies, System.String _userId, System.String _userName, System.String _userCnName, System.Int32 _autoId, System.DateTime?_updatetime, System.Int32?_credentialsStyle, System.Int32 _degreeId, System.Int32 _degreeCourseId, System.Int32 _studentStatus, System.String _feBadgeId, System.String _attachmentFileStyle, System.String _attachmentFilePath, System.String _courseId, System.String _updateUserId) { VwStudentCourseRelation newVwStudentCourseRelation = new VwStudentCourseRelation(); newVwStudentCourseRelation.StudentId = _studentId; newVwStudentCourseRelation.StudentNote = _studentNote; newVwStudentCourseRelation.Studies = _studies; newVwStudentCourseRelation.UserId = _userId; newVwStudentCourseRelation.UserName = _userName; newVwStudentCourseRelation.UserCnName = _userCnName; newVwStudentCourseRelation.AutoId = _autoId; newVwStudentCourseRelation.Updatetime = _updatetime; newVwStudentCourseRelation.CredentialsStyle = _credentialsStyle; newVwStudentCourseRelation.DegreeId = _degreeId; newVwStudentCourseRelation.DegreeCourseId = _degreeCourseId; newVwStudentCourseRelation.StudentStatus = _studentStatus; newVwStudentCourseRelation.FeBadgeId = _feBadgeId; newVwStudentCourseRelation.AttachmentFileStyle = _attachmentFileStyle; newVwStudentCourseRelation.AttachmentFilePath = _attachmentFilePath; newVwStudentCourseRelation.CourseId = _courseId; newVwStudentCourseRelation.UpdateUserId = _updateUserId; return(newVwStudentCourseRelation); }