示例#1
0
        /// <summary>
        /// Update into Sys_CustomerStar
        /// </summary>
        /// <param name="sys_customerstar">Sys_CustomerStar</param>
        public void UpdateSys_CustomerStar(Sys_CustomerStar sys_customerstar)
        {
            if (sys_customerstar == null)
            {
                return;
            }

            if (this._context.IsAttached(sys_customerstar))
            {
                this._context.Sys_CustomerStar.Attach(sys_customerstar);
            }

            this._context.SaveChanges();
        }
示例#2
0
        /// <summary>
        /// Insert into Sys_CustomerStar
        /// </summary>
        /// <param name="sys_customerstar">Sys_CustomerStar</param>
        public void InsertSys_CustomerStar(Sys_CustomerStar sys_customerstar)
        {
            if (sys_customerstar == null)
            {
                return;
            }

            if (!this._context.IsAttached(sys_customerstar))
            {
                this._context.Sys_CustomerStar.AddObject(sys_customerstar);
            }

            this._context.SaveChanges();
        }