///<summary> /// A simple factory method to create a new <see cref="VwInstituteDegrees"/> instance. ///</summary> ///<param name="_instituteId"></param> ///<param name="_instituteName"></param> ///<param name="_description"></param> ///<param name="_instituteDean"></param> ///<param name="_instituteStatus"></param> ///<param name="_degreeId"></param> ///<param name="_degreeName"></param> ///<param name="_degreesDescription"></param> ///<param name="_credithour"></param> ///<param name="_degreeStatus"></param> public static VwInstituteDegrees CreateVwInstituteDegrees(System.String _instituteId, System.String _instituteName, System.String _description, System.String _instituteDean, System.Int32 _instituteStatus, System.Int32 _degreeId, System.String _degreeName, System.String _degreesDescription, System.Int32?_credithour, System.Int32?_degreeStatus) { VwInstituteDegrees newVwInstituteDegrees = new VwInstituteDegrees(); newVwInstituteDegrees.InstituteId = _instituteId; newVwInstituteDegrees.InstituteName = _instituteName; newVwInstituteDegrees.Description = _description; newVwInstituteDegrees.InstituteDean = _instituteDean; newVwInstituteDegrees.InstituteStatus = _instituteStatus; newVwInstituteDegrees.DegreeId = _degreeId; newVwInstituteDegrees.DegreeName = _degreeName; newVwInstituteDegrees.DegreesDescription = _degreesDescription; newVwInstituteDegrees.Credithour = _credithour; newVwInstituteDegrees.DegreeStatus = _degreeStatus; return(newVwInstituteDegrees); }
///<summary> /// Returns a Typed VwInstituteDegreesBase Entity ///</summary> public virtual VwInstituteDegreesBase Copy() { //shallow copy entity VwInstituteDegrees copy = new VwInstituteDegrees(); copy.InstituteId = this.InstituteId; copy.InstituteName = this.InstituteName; copy.Description = this.Description; copy.InstituteDean = this.InstituteDean; copy.InstituteStatus = this.InstituteStatus; copy.DegreeId = this.DegreeId; copy.DegreeName = this.DegreeName; copy.DegreesDescription = this.DegreesDescription; copy.Credithour = this.Credithour; copy.DegreeStatus = this.DegreeStatus; copy.AcceptChanges(); return((VwInstituteDegrees)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(VwInstituteDegrees 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 "InstituteStatus": return(entity.InstituteStatus); case "DegreeId": return(entity.DegreeId); case "DegreeName": return(entity.DegreeName); case "DegreesDescription": return(entity.DegreesDescription); case "Credithour": return(entity.Credithour); case "DegreeStatus": return(entity.DegreeStatus); } return(null); }