public int Update(Ex_CategoryValue model) { return((int)SqlHelper.ExecuteScalar(SqlConnection, CommonHelper.Config.GetFullyQualifiedName("Ex_CategoryValue_Update") , model.Id, CommonHelper.Null.GetNull(model.CatCode), CommonHelper.Null.GetNull(model.TypeCode), CommonHelper.Null.GetNull(model.Name) , model.Orders, model.UsedState, model.CreatedBy, model.CreatedDate, CommonHelper.Null.GetNull(model.ModifiedDate), CommonHelper.Null.GetNull(model.ModifiedBy))); }
public int Insert(Ex_CategoryValue model) { var deciResult = SqlHelper.ExecuteScalar(SqlConnection, CommonHelper.Config.GetFullyQualifiedName("Ex_CategoryValue_Insert") , CommonHelper.Null.GetNull(model.CatCode), CommonHelper.Null.GetNull(model.TypeCode), CommonHelper.Null.GetNull(model.Name) , model.Orders, model.UsedState, model.CreatedBy, model.CreatedDate, CommonHelper.Null.GetNull(model.ModifiedDate), CommonHelper.Null.GetNull(model.ModifiedBy)); return(CommonHelper.Convert.ConvertToInt32(deciResult)); }