protected virtual bool HasReferences(DataSource ds) { if (ProductAttributeMapping.GetCountByAttributeId(ds, Id) > 0) { return(true); } return(false); }