Exemple #1
0
        /// <summary>
        /// Update into XMLogisticsFeeMain
        /// </summary>
        /// <param name="xmlogisticsfeemain">XMLogisticsFeeMain</param>
        public void UpdateXMLogisticsFeeMain(XMLogisticsFeeMain xmlogisticsfeemain)
        {
            if (xmlogisticsfeemain == null)
            {
                return;
            }

            if (this._context.IsAttached(xmlogisticsfeemain))
            {
                this._context.XMLogisticsFeeMains.Attach(xmlogisticsfeemain);
            }

            this._context.SaveChanges();
        }
Exemple #2
0
        /// <summary>
        /// Insert into XMLogisticsFeeMain
        /// </summary>
        /// <param name="xmlogisticsfeemain">XMLogisticsFeeMain</param>
        public void InsertXMLogisticsFeeMain(XMLogisticsFeeMain xmlogisticsfeemain, bool flag)
        {
            if (xmlogisticsfeemain == null)
            {
                return;
            }

            if (!this._context.IsAttached(xmlogisticsfeemain))
            {
                this._context.XMLogisticsFeeMains.AddObject(xmlogisticsfeemain);
            }

            if (flag)
            {
                this._context.SaveChanges();
            }
        }
Exemple #3
0
        public XMLogisticsFeeMain getSingle(Expression <Func <XMLogisticsFeeMain, bool> > predicate)
        {
            XMLogisticsFeeMain entity = _context.XMLogisticsFeeMains.FirstOrDefault(predicate);

            return(entity);
        }