/// <summary>
        /// Insert into XMLogisticsFeeBranch
        /// </summary>
        /// <param name="xmlogisticsfeebranch">XMLogisticsFeeBranch</param>
        public void InsertXMLogisticsFeeBranch(XMLogisticsFeeBranch xmlogisticsfeebranch)
        {
            if (xmlogisticsfeebranch == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmlogisticsfeebranch))
            {
                this._context.XMLogisticsFeeBranches.AddObject(xmlogisticsfeebranch);
            }

            this._context.SaveChanges();
        }
        /// <summary>
        /// Update into XMLogisticsFeeBranch
        /// </summary>
        /// <param name="xmlogisticsfeebranch">XMLogisticsFeeBranch</param>
        public void UpdateXMLogisticsFeeBranch(XMLogisticsFeeBranch xmlogisticsfeebranch)
        {
            if (xmlogisticsfeebranch == null)
            {
                return;
            }

            if (this._context.IsAttached(xmlogisticsfeebranch))
            {
                this._context.XMLogisticsFeeBranches.Attach(xmlogisticsfeebranch);
            }

            this._context.SaveChanges();
        }
        public XMLogisticsFeeBranch getSingle(Expression <Func <XMLogisticsFeeBranch, bool> > predicate)
        {
            XMLogisticsFeeBranch entity = _context.XMLogisticsFeeBranches.FirstOrDefault(predicate);

            return(entity);
        }