예제 #1
0
        ///<summary>
        /// A simple factory method to create a new <see cref="EvlVLearningRecordExcel"/> instance.
        ///</summary>
        ///<param name="_courseName"></param>
        ///<param name="_sso"></param>
        ///<param name="_userName"></param>
        ///<param name="_function"></param>
        ///<param name="_startDate"></param>
        ///<param name="_completedDate"></param>
        ///<param name="_location"></param>
        ///<param name="_trainer"></param>
        ///<param name="_courseid"></param>
        ///<param name="_id"></param>
        ///<param name="_createdDate"></param>
        public static EvlVLearningRecordExcel CreateEvlVLearningRecordExcel(System.String _courseName, System.String _sso, System.String _userName, System.String _function, System.DateTime?_startDate, System.DateTime?_completedDate, System.String _location, System.String _trainer, System.String _courseid, System.Int32 _id, System.DateTime?_createdDate)
        {
            EvlVLearningRecordExcel newEvlVLearningRecordExcel = new EvlVLearningRecordExcel();

            newEvlVLearningRecordExcel.CourseName    = _courseName;
            newEvlVLearningRecordExcel.Sso           = _sso;
            newEvlVLearningRecordExcel.UserName      = _userName;
            newEvlVLearningRecordExcel.Function      = _function;
            newEvlVLearningRecordExcel.StartDate     = _startDate;
            newEvlVLearningRecordExcel.CompletedDate = _completedDate;
            newEvlVLearningRecordExcel.Location      = _location;
            newEvlVLearningRecordExcel.Trainer       = _trainer;
            newEvlVLearningRecordExcel.Courseid      = _courseid;
            newEvlVLearningRecordExcel.Id            = _id;
            newEvlVLearningRecordExcel.CreatedDate   = _createdDate;
            return(newEvlVLearningRecordExcel);
        }
예제 #2
0
        ///<summary>
        ///  Returns a Typed EvlVLearningRecordExcelBase Entity
        ///</summary>
        public virtual EvlVLearningRecordExcelBase Copy()
        {
            //shallow copy entity
            EvlVLearningRecordExcel copy = new EvlVLearningRecordExcel();

            copy.CourseName    = this.CourseName;
            copy.Sso           = this.Sso;
            copy.UserName      = this.UserName;
            copy.Function      = this.Function;
            copy.StartDate     = this.StartDate;
            copy.CompletedDate = this.CompletedDate;
            copy.Location      = this.Location;
            copy.Trainer       = this.Trainer;
            copy.Courseid      = this.Courseid;
            copy.Id            = this.Id;
            copy.CreatedDate   = this.CreatedDate;
            copy.AcceptChanges();
            return((EvlVLearningRecordExcel)copy);
        }
예제 #3
0
        /// <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(EvlVLearningRecordExcel entity, string propertyName)
        {
            switch (propertyName)
            {
            case "CourseName":
                return(entity.CourseName);

            case "Sso":
                return(entity.Sso);

            case "UserName":
                return(entity.UserName);

            case "Function":
                return(entity.Function);

            case "StartDate":
                return(entity.StartDate);

            case "CompletedDate":
                return(entity.CompletedDate);

            case "Location":
                return(entity.Location);

            case "Trainer":
                return(entity.Trainer);

            case "Courseid":
                return(entity.Courseid);

            case "Id":
                return(entity.Id);

            case "CreatedDate":
                return(entity.CreatedDate);
            }
            return(null);
        }