protected void FillModel(Model.Error404 objModel) { this.ID = objModel.ID; this.AppID = objModel.AppID; this.Environment = objModel.Environment; this.ClientID = objModel.ClientID; this.FirstTime = objModel.FirstTime; this.LastTime = objModel.LastTime; this.URL = objModel.URL; this.Count = objModel.Count; this.Hide = objModel.Hide; this.UserAgent = objModel.UserAgent; this.Detail = objModel.Detail; }
public static Model.Error404 UpdateError404(Model.Error404 objModel) { SqlCommand cmd; cmd = new SqlCommand("[dbo].[pr_Error404_Update]"); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.AddWithValue("@Error404ID", SqlConvert.ToSql(objModel.ID)); cmd.Parameters.AddWithValue("@URL", SqlConvert.ToSql(objModel.URL)); cmd.Parameters.AddWithValue("@Count", SqlConvert.ToSql(objModel.Count)); cmd.Parameters.AddWithValue("@Hide", SqlConvert.ToSql(objModel.Hide)); cmd.Parameters.AddWithValue("@UserAgent", SqlConvert.ToSql(objModel.UserAgent)); cmd.Parameters.AddWithValue("@Detail", SqlConvert.ToSql(objModel.Detail)); return(GetError404Model(SqlHelper.ExecuteDataset(cmd, null, ConnectionStringName).Tables[0].Rows[0])); }