예제 #1
0
        /// <summary>
        /// Update into Sys_StarSet
        /// </summary>
        /// <param name="sys_starset">Sys_StarSet</param>
        public void UpdateSys_StarSet(Sys_StarSet sys_starset)
        {
            if (sys_starset == null)
            {
                return;
            }

            if (this._context.IsAttached(sys_starset))
            {
                this._context.Sys_StarSet.Attach(sys_starset);
            }

            this._context.SaveChanges();
        }
예제 #2
0
        /// <summary>
        /// Insert into Sys_StarSet
        /// </summary>
        /// <param name="sys_starset">Sys_StarSet</param>
        public void InsertSys_StarSet(Sys_StarSet sys_starset)
        {
            if (sys_starset == null)
            {
                return;
            }

            if (!this._context.IsAttached(sys_starset))
            {
                this._context.Sys_StarSet.AddObject(sys_starset);
            }

            this._context.SaveChanges();
        }