Exemplo n.º 1
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(EvlVLearningRecordCsv entity, string propertyName)
        {
            switch (propertyName)
            {
            case "CourseName":
                return(entity.CourseName);

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

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

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

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

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

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

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

            case "CreatedDate":
                return(entity.CreatedDate);
            }
            return(null);
        }
Exemplo n.º 2
0
        ///<summary>
        /// A simple factory method to create a new <see cref="EvlVLearningRecordCsv"/> instance.
        ///</summary>
        ///<param name="_courseName"></param>
        ///<param name="_description"></param>
        ///<param name="_sso"></param>
        ///<param name="_userName"></param>
        ///<param name="_completedDate"></param>
        ///<param name="_status"></param>
        ///<param name="_courseid"></param>
        ///<param name="_id"></param>
        ///<param name="_createdDate"></param>
        public static EvlVLearningRecordCsv CreateEvlVLearningRecordCsv(System.String _courseName, System.String _description, System.String _sso, System.String _userName, System.String _completedDate, System.String _status, System.String _courseid, System.Int32 _id, System.DateTime?_createdDate)
        {
            EvlVLearningRecordCsv newEvlVLearningRecordCsv = new EvlVLearningRecordCsv();

            newEvlVLearningRecordCsv.CourseName    = _courseName;
            newEvlVLearningRecordCsv.Description   = _description;
            newEvlVLearningRecordCsv.Sso           = _sso;
            newEvlVLearningRecordCsv.UserName      = _userName;
            newEvlVLearningRecordCsv.CompletedDate = _completedDate;
            newEvlVLearningRecordCsv.Status        = _status;
            newEvlVLearningRecordCsv.Courseid      = _courseid;
            newEvlVLearningRecordCsv.Id            = _id;
            newEvlVLearningRecordCsv.CreatedDate   = _createdDate;
            return(newEvlVLearningRecordCsv);
        }
Exemplo n.º 3
0
        ///<summary>
        ///  Returns a Typed EvlVLearningRecordCsvBase Entity
        ///</summary>
        public virtual EvlVLearningRecordCsvBase Copy()
        {
            //shallow copy entity
            EvlVLearningRecordCsv copy = new EvlVLearningRecordCsv();

            copy.CourseName    = this.CourseName;
            copy.Description   = this.Description;
            copy.Sso           = this.Sso;
            copy.UserName      = this.UserName;
            copy.CompletedDate = this.CompletedDate;
            copy.Status        = this.Status;
            copy.Courseid      = this.Courseid;
            copy.Id            = this.Id;
            copy.CreatedDate   = this.CreatedDate;
            copy.AcceptChanges();
            return((EvlVLearningRecordCsv)copy);
        }