/// <summary>
 /// 得到一个对象实体
 /// </summary>
 public zlzw.Model.JobEnterpriseResumeFavoriteModel DataRowToModel(DataRow row)
 {
     zlzw.Model.JobEnterpriseResumeFavoriteModel model = new zlzw.Model.JobEnterpriseResumeFavoriteModel();
     if (row != null)
     {
         if (row["FavoriteID"] != null && row["FavoriteID"].ToString() != "")
         {
             model.FavoriteID = int.Parse(row["FavoriteID"].ToString());
         }
         if (row["FavoriteGuid"] != null && row["FavoriteGuid"].ToString() != "")
         {
             model.FavoriteGuid = new Guid(row["FavoriteGuid"].ToString());
         }
         if (row["FavoriteStatus"] != null && row["FavoriteStatus"].ToString() != "")
         {
             model.FavoriteStatus = int.Parse(row["FavoriteStatus"].ToString());
         }
         if (row["FavoriteType"] != null && row["FavoriteType"].ToString() != "")
         {
             model.FavoriteType = int.Parse(row["FavoriteType"].ToString());
         }
         if (row["FavoriteCategory"] != null)
         {
             model.FavoriteCategory = row["FavoriteCategory"].ToString();
         }
         if (row["FavoriteCustomCategory"] != null)
         {
             model.FavoriteCustomCategory = row["FavoriteCustomCategory"].ToString();
         }
         if (row["EnterpriseKey"] != null)
         {
             model.EnterpriseKey = row["EnterpriseKey"].ToString();
         }
         if (row["EnterpriseName"] != null)
         {
             model.EnterpriseName = row["EnterpriseName"].ToString();
         }
         if (row["PersonResumeKey"] != null)
         {
             model.PersonResumeKey = row["PersonResumeKey"].ToString();
         }
         if (row["PersonResumeName"] != null)
         {
             model.PersonResumeName = row["PersonResumeName"].ToString();
         }
         if (row["PersonUserKey"] != null)
         {
             model.PersonUserKey = row["PersonUserKey"].ToString();
         }
         if (row["PersonUserName"] != null)
         {
             model.PersonUserName = row["PersonUserName"].ToString();
         }
         if (row["FavoriteMemo"] != null)
         {
             model.FavoriteMemo = row["FavoriteMemo"].ToString();
         }
         if (row["FavoriteDate"] != null && row["FavoriteDate"].ToString() != "")
         {
             model.FavoriteDate = DateTime.Parse(row["FavoriteDate"].ToString());
         }
         if (row["PropertyNames"] != null)
         {
             model.PropertyNames = row["PropertyNames"].ToString();
         }
         if (row["PropertyValues"] != null)
         {
             model.PropertyValues = row["PropertyValues"].ToString();
         }
     }
     return model;
 }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public zlzw.Model.JobEnterpriseResumeFavoriteModel GetModel(int FavoriteID)
        {
            SqlParameter[] parameters = {
					new SqlParameter("@FavoriteID", SqlDbType.Int,4)
			};
            parameters[0].Value = FavoriteID;

            zlzw.Model.JobEnterpriseResumeFavoriteModel model = new zlzw.Model.JobEnterpriseResumeFavoriteModel();
            DataSet ds = DbHelperSQL.RunProcedure("JobEnterpriseResumeFavorite_GetModel", parameters, "ds");
            if (ds.Tables[0].Rows.Count > 0)
            {
                return DataRowToModel(ds.Tables[0].Rows[0]);
            }
            else
            {
                return null;
            }
        }