public bool ScrapReasonDelete(ScrapReason scrapreason)
        {
            return Execute<bool>(dal =>
            {
                ScrapReason scrapreasonDelete = dal.ScrapReason.Where(x => x.ScrapReasonID == scrapreason.ScrapReasonID).FirstOrDefault();
                if (scrapreasonDelete != null)
                {
                    dal.ScrapReason.DeleteOnSubmit(scrapreasonDelete);
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
        public bool ScrapReasonUpdate(ScrapReason scrapreason)
        {
            return Execute<bool>(dal =>
            {
                ScrapReason scrapreasonUpdate = dal.ScrapReason.Where(x => x.ScrapReasonID == scrapreason.ScrapReasonID).FirstOrDefault();
                if (scrapreasonUpdate != null)
                {
                    scrapreasonUpdate.ScrapReasonID = scrapreason.ScrapReasonID;
                    scrapreasonUpdate.Name = scrapreason.Name;
                    scrapreasonUpdate.ModifiedDate = scrapreason.ModifiedDate;
                    dal.SubmitChanges();
                    return true;
                }
                return false;

            });
        }
 partial void DeleteScrapReason(ScrapReason instance);
 partial void UpdateScrapReason(ScrapReason instance);
 partial void InsertScrapReason(ScrapReason instance);
 public void ScrapReasonUpdate(ScrapReason scrapreason)
 {
     adventureWorks_BC.ScrapReasonUpdate(scrapreason);
 }
 public void ScrapReasonAdd(ScrapReason scrapreason)
 {
     adventureWorks_BC.ScrapReasonAdd(scrapreason);
 }