///<summary> /// A simple factory method to create a new <see cref="VwInstituteDegreeStudents"/> instance. ///</summary> ///<param name="_instituteName"></param> ///<param name="_degreeId"></param> ///<param name="_degreeName"></param> ///<param name="_instituteId"></param> ///<param name="_credithour"></param> ///<param name="_studentId"></param> ///<param name="_userId"></param> ///<param name="_status"></param> ///<param name="_studies"></param> ///<param name="_instituteDean"></param> ///<param name="_createTime"></param> ///<param name="_notes"></param> public static VwInstituteDegreeStudents CreateVwInstituteDegreeStudents(System.String _instituteName, System.Int32 _degreeId, System.String _degreeName, System.String _instituteId, System.Int32?_credithour, System.Int32 _studentId, System.String _userId, System.Int32 _status, System.Int32 _studies, System.String _instituteDean, System.DateTime?_createTime, System.String _notes) { VwInstituteDegreeStudents newVwInstituteDegreeStudents = new VwInstituteDegreeStudents(); newVwInstituteDegreeStudents.InstituteName = _instituteName; newVwInstituteDegreeStudents.DegreeId = _degreeId; newVwInstituteDegreeStudents.DegreeName = _degreeName; newVwInstituteDegreeStudents.InstituteId = _instituteId; newVwInstituteDegreeStudents.Credithour = _credithour; newVwInstituteDegreeStudents.StudentId = _studentId; newVwInstituteDegreeStudents.UserId = _userId; newVwInstituteDegreeStudents.Status = _status; newVwInstituteDegreeStudents.Studies = _studies; newVwInstituteDegreeStudents.InstituteDean = _instituteDean; newVwInstituteDegreeStudents.CreateTime = _createTime; newVwInstituteDegreeStudents.Notes = _notes; return(newVwInstituteDegreeStudents); }
/// <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(VwInstituteDegreeStudents entity, string propertyName) { switch (propertyName) { case "InstituteName": return(entity.InstituteName); case "DegreeId": return(entity.DegreeId); case "DegreeName": return(entity.DegreeName); case "InstituteId": return(entity.InstituteId); case "Credithour": return(entity.Credithour); case "StudentId": return(entity.StudentId); case "UserId": return(entity.UserId); case "Status": return(entity.Status); case "Studies": return(entity.Studies); case "InstituteDean": return(entity.InstituteDean); case "CreateTime": return(entity.CreateTime); case "Notes": return(entity.Notes); } return(null); }
///<summary> /// Returns a Typed VwInstituteDegreeStudentsBase Entity ///</summary> public virtual VwInstituteDegreeStudentsBase Copy() { //shallow copy entity VwInstituteDegreeStudents copy = new VwInstituteDegreeStudents(); copy.InstituteName = this.InstituteName; copy.DegreeId = this.DegreeId; copy.DegreeName = this.DegreeName; copy.InstituteId = this.InstituteId; copy.Credithour = this.Credithour; copy.StudentId = this.StudentId; copy.UserId = this.UserId; copy.Status = this.Status; copy.Studies = this.Studies; copy.InstituteDean = this.InstituteDean; copy.CreateTime = this.CreateTime; copy.Notes = this.Notes; copy.AcceptChanges(); return((VwInstituteDegreeStudents)copy); }