/// <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(VJobCandidate entity, string propertyName) { switch (propertyName) { case "JobCandidateId": return(entity.JobCandidateId); case "EmployeeId": return(entity.EmployeeId); case "SafeNameNamePrefix": return(entity.SafeNameNamePrefix); case "SafeNameNameFirst": return(entity.SafeNameNameFirst); case "SafeNameNameMiddle": return(entity.SafeNameNameMiddle); case "SafeNameNameLast": return(entity.SafeNameNameLast); case "SafeNameNameSuffix": return(entity.SafeNameNameSuffix); case "Skills": return(entity.Skills); case "SafeNameAddrType": return(entity.SafeNameAddrType); case "SafeNameAddrLocCountryRegion": return(entity.SafeNameAddrLocCountryRegion); case "SafeNameAddrLocState": return(entity.SafeNameAddrLocState); case "SafeNameAddrLocCity": return(entity.SafeNameAddrLocCity); case "SafeNameAddrPostalCode": return(entity.SafeNameAddrPostalCode); case "Email": return(entity.Email); case "WebSite": return(entity.WebSite); case "ModifiedDate": return(entity.ModifiedDate); } return(null); }
///<summary> /// A simple factory method to create a new <see cref="VJobCandidate"/> instance. ///</summary> ///<param name="_jobCandidateId"></param> ///<param name="_employeeId"></param> ///<param name="_safeNameNamePrefix"></param> ///<param name="_safeNameNameFirst"></param> ///<param name="_safeNameNameMiddle"></param> ///<param name="_safeNameNameLast"></param> ///<param name="_safeNameNameSuffix"></param> ///<param name="_skills"></param> ///<param name="_safeNameAddrType"></param> ///<param name="_safeNameAddrLocCountryRegion"></param> ///<param name="_safeNameAddrLocState"></param> ///<param name="_safeNameAddrLocCity"></param> ///<param name="_safeNameAddrPostalCode"></param> ///<param name="_email"></param> ///<param name="_webSite"></param> ///<param name="_modifiedDate"></param> public static VJobCandidate CreateVJobCandidate(System.Int32 _jobCandidateId, System.Int32?_employeeId, System.String _safeNameNamePrefix, System.String _safeNameNameFirst, System.String _safeNameNameMiddle, System.String _safeNameNameLast, System.String _safeNameNameSuffix, System.String _skills, System.String _safeNameAddrType, System.String _safeNameAddrLocCountryRegion, System.String _safeNameAddrLocState, System.String _safeNameAddrLocCity, System.String _safeNameAddrPostalCode, System.String _email, System.String _webSite, System.DateTime _modifiedDate) { VJobCandidate newVJobCandidate = new VJobCandidate(); newVJobCandidate.JobCandidateId = _jobCandidateId; newVJobCandidate.EmployeeId = _employeeId; newVJobCandidate.SafeNameNamePrefix = _safeNameNamePrefix; newVJobCandidate.SafeNameNameFirst = _safeNameNameFirst; newVJobCandidate.SafeNameNameMiddle = _safeNameNameMiddle; newVJobCandidate.SafeNameNameLast = _safeNameNameLast; newVJobCandidate.SafeNameNameSuffix = _safeNameNameSuffix; newVJobCandidate.Skills = _skills; newVJobCandidate.SafeNameAddrType = _safeNameAddrType; newVJobCandidate.SafeNameAddrLocCountryRegion = _safeNameAddrLocCountryRegion; newVJobCandidate.SafeNameAddrLocState = _safeNameAddrLocState; newVJobCandidate.SafeNameAddrLocCity = _safeNameAddrLocCity; newVJobCandidate.SafeNameAddrPostalCode = _safeNameAddrPostalCode; newVJobCandidate.Email = _email; newVJobCandidate.WebSite = _webSite; newVJobCandidate.ModifiedDate = _modifiedDate; return(newVJobCandidate); }
///<summary> /// Returns a Typed VJobCandidateBase Entity ///</summary> public virtual VJobCandidateBase Copy() { //shallow copy entity VJobCandidate copy = new VJobCandidate(); copy.JobCandidateId = this.JobCandidateId; copy.EmployeeId = this.EmployeeId; copy.SafeNameNamePrefix = this.SafeNameNamePrefix; copy.SafeNameNameFirst = this.SafeNameNameFirst; copy.SafeNameNameMiddle = this.SafeNameNameMiddle; copy.SafeNameNameLast = this.SafeNameNameLast; copy.SafeNameNameSuffix = this.SafeNameNameSuffix; copy.Skills = this.Skills; copy.SafeNameAddrType = this.SafeNameAddrType; copy.SafeNameAddrLocCountryRegion = this.SafeNameAddrLocCountryRegion; copy.SafeNameAddrLocState = this.SafeNameAddrLocState; copy.SafeNameAddrLocCity = this.SafeNameAddrLocCity; copy.SafeNameAddrPostalCode = this.SafeNameAddrPostalCode; copy.Email = this.Email; copy.WebSite = this.WebSite; copy.ModifiedDate = this.ModifiedDate; copy.AcceptChanges(); return((VJobCandidate)copy); }
///<summary> /// Returns a Typed VJobCandidateBase Entity ///</summary> public virtual VJobCandidateBase Copy() { //shallow copy entity VJobCandidate copy = new VJobCandidate(); copy.JobCandidateId = this.JobCandidateId; copy.EmployeeId = this.EmployeeId; copy.SafeNameNamePrefix = this.SafeNameNamePrefix; copy.SafeNameNameFirst = this.SafeNameNameFirst; copy.SafeNameNameMiddle = this.SafeNameNameMiddle; copy.SafeNameNameLast = this.SafeNameNameLast; copy.SafeNameNameSuffix = this.SafeNameNameSuffix; copy.Skills = this.Skills; copy.SafeNameAddrType = this.SafeNameAddrType; copy.SafeNameAddrLocCountryRegion = this.SafeNameAddrLocCountryRegion; copy.SafeNameAddrLocState = this.SafeNameAddrLocState; copy.SafeNameAddrLocCity = this.SafeNameAddrLocCity; copy.SafeNameAddrPostalCode = this.SafeNameAddrPostalCode; copy.Email = this.Email; copy.WebSite = this.WebSite; copy.ModifiedDate = this.ModifiedDate; copy.AcceptChanges(); return (VJobCandidate)copy; }
///<summary> /// A simple factory method to create a new <see cref="VJobCandidate"/> instance. ///</summary> ///<param name="_jobCandidateId"></param> ///<param name="_employeeId"></param> ///<param name="_safeNameNamePrefix"></param> ///<param name="_safeNameNameFirst"></param> ///<param name="_safeNameNameMiddle"></param> ///<param name="_safeNameNameLast"></param> ///<param name="_safeNameNameSuffix"></param> ///<param name="_skills"></param> ///<param name="_safeNameAddrType"></param> ///<param name="_safeNameAddrLocCountryRegion"></param> ///<param name="_safeNameAddrLocState"></param> ///<param name="_safeNameAddrLocCity"></param> ///<param name="_safeNameAddrPostalCode"></param> ///<param name="_email"></param> ///<param name="_webSite"></param> ///<param name="_modifiedDate"></param> public static VJobCandidate CreateVJobCandidate(System.Int32 _jobCandidateId, System.Int32? _employeeId, System.String _safeNameNamePrefix, System.String _safeNameNameFirst, System.String _safeNameNameMiddle, System.String _safeNameNameLast, System.String _safeNameNameSuffix, System.String _skills, System.String _safeNameAddrType, System.String _safeNameAddrLocCountryRegion, System.String _safeNameAddrLocState, System.String _safeNameAddrLocCity, System.String _safeNameAddrPostalCode, System.String _email, System.String _webSite, System.DateTime _modifiedDate) { VJobCandidate newVJobCandidate = new VJobCandidate(); newVJobCandidate.JobCandidateId = _jobCandidateId; newVJobCandidate.EmployeeId = _employeeId; newVJobCandidate.SafeNameNamePrefix = _safeNameNamePrefix; newVJobCandidate.SafeNameNameFirst = _safeNameNameFirst; newVJobCandidate.SafeNameNameMiddle = _safeNameNameMiddle; newVJobCandidate.SafeNameNameLast = _safeNameNameLast; newVJobCandidate.SafeNameNameSuffix = _safeNameNameSuffix; newVJobCandidate.Skills = _skills; newVJobCandidate.SafeNameAddrType = _safeNameAddrType; newVJobCandidate.SafeNameAddrLocCountryRegion = _safeNameAddrLocCountryRegion; newVJobCandidate.SafeNameAddrLocState = _safeNameAddrLocState; newVJobCandidate.SafeNameAddrLocCity = _safeNameAddrLocCity; newVJobCandidate.SafeNameAddrPostalCode = _safeNameAddrPostalCode; newVJobCandidate.Email = _email; newVJobCandidate.WebSite = _webSite; newVJobCandidate.ModifiedDate = _modifiedDate; return newVJobCandidate; }
/// <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(VJobCandidate entity, string propertyName) { switch (propertyName) { case "JobCandidateId": return entity.JobCandidateId; case "EmployeeId": return entity.EmployeeId; case "SafeNameNamePrefix": return entity.SafeNameNamePrefix; case "SafeNameNameFirst": return entity.SafeNameNameFirst; case "SafeNameNameMiddle": return entity.SafeNameNameMiddle; case "SafeNameNameLast": return entity.SafeNameNameLast; case "SafeNameNameSuffix": return entity.SafeNameNameSuffix; case "Skills": return entity.Skills; case "SafeNameAddrType": return entity.SafeNameAddrType; case "SafeNameAddrLocCountryRegion": return entity.SafeNameAddrLocCountryRegion; case "SafeNameAddrLocState": return entity.SafeNameAddrLocState; case "SafeNameAddrLocCity": return entity.SafeNameAddrLocCity; case "SafeNameAddrPostalCode": return entity.SafeNameAddrPostalCode; case "Email": return entity.Email; case "WebSite": return entity.WebSite; case "ModifiedDate": return entity.ModifiedDate; } return null; }
/// <summary> /// Convert a nettiers collection to the ws proxy collection. /// </summary> public static VJobCandidate Convert(WsProxy.VJobCandidate item) { VJobCandidate outItem = new VJobCandidate(); outItem.JobCandidateId = item.JobCandidateId; outItem.EmployeeId = item.EmployeeId; outItem.SafeNameNamePrefix = item.SafeNameNamePrefix; outItem.SafeNameNameFirst = item.SafeNameNameFirst; outItem.SafeNameNameMiddle = item.SafeNameNameMiddle; outItem.SafeNameNameLast = item.SafeNameNameLast; outItem.SafeNameNameSuffix = item.SafeNameNameSuffix; outItem.Skills = item.Skills; outItem.SafeNameAddrType = item.SafeNameAddrType; outItem.SafeNameAddrLocCountryRegion = item.SafeNameAddrLocCountryRegion; outItem.SafeNameAddrLocState = item.SafeNameAddrLocState; outItem.SafeNameAddrLocCity = item.SafeNameAddrLocCity; outItem.SafeNameAddrPostalCode = item.SafeNameAddrPostalCode; outItem.Email = item.Email; outItem.WebSite = item.WebSite; outItem.ModifiedDate = item.ModifiedDate; outItem.AcceptChanges(); return outItem; }
/// <summary> /// Deserialize the mock VJobCandidate entity from a temporary file. /// </summary> private void Step_7_DeserializeEntity_Generated() { string fileName = "temp_VJobCandidate.xml"; XmlSerializer mySerializer = new XmlSerializer(typeof(VJobCandidate)); System.IO.FileStream myFileStream = new System.IO.FileStream(fileName, System.IO.FileMode.Open); mock = (VJobCandidate) mySerializer.Deserialize(myFileStream); myFileStream.Close(); System.IO.File.Delete(fileName); System.Console.WriteLine("mock correctly deserialized from a temporary file."); }
///<summary> /// Returns a Typed VJobCandidate Entity with mock values. ///</summary> static public VJobCandidate CreateMockInstance() { VJobCandidate mock = new VJobCandidate(); mock.JobCandidateId = TestUtility.Instance.RandomNumber(); mock.EmployeeId = TestUtility.Instance.RandomNumber(); mock.SafeNameNamePrefix = TestUtility.Instance.RandomString(14, false);; mock.SafeNameNameFirst = TestUtility.Instance.RandomString(14, false);; mock.SafeNameNameMiddle = TestUtility.Instance.RandomString(14, false);; mock.SafeNameNameLast = TestUtility.Instance.RandomString(14, false);; mock.SafeNameNameSuffix = TestUtility.Instance.RandomString(14, false);; mock.Skills = TestUtility.Instance.RandomString(2, false);; mock.SafeNameAddrType = TestUtility.Instance.RandomString(14, false);; mock.SafeNameAddrLocCountryRegion = TestUtility.Instance.RandomString(49, false);; mock.SafeNameAddrLocState = TestUtility.Instance.RandomString(49, false);; mock.SafeNameAddrLocCity = TestUtility.Instance.RandomString(49, false);; mock.SafeNameAddrPostalCode = TestUtility.Instance.RandomString(9, false);; mock.Email = TestUtility.Instance.RandomString(2, false);; mock.WebSite = TestUtility.Instance.RandomString(2, false);; mock.ModifiedDate = TestUtility.Instance.RandomDateTime(); return (VJobCandidate)mock; }