コード例 #1
0
        /// <summary>
        /// Update into TableUpdateLog
        /// </summary>
        /// <param name="tableupdatelog">TableUpdateLog</param>
        public void UpdateTableUpdateLog(TableUpdateLog tableupdatelog)
        {
            if (tableupdatelog == null)
            {
                return;
            }

            if (this._context.IsAttached(tableupdatelog))
            {
                this._context.TableUpdateLogs.Attach(tableupdatelog);
            }

            this._context.SaveChanges();
        }
コード例 #2
0
        /// <summary>
        /// Insert into TableUpdateLog
        /// </summary>
        /// <param name="tableupdatelog">TableUpdateLog</param>
        public void InsertTableUpdateLog(TableUpdateLog tableupdatelog)
        {
            if (tableupdatelog == null)
            {
                return;
            }

            if (!this._context.IsAttached(tableupdatelog))
            {
                this._context.TableUpdateLogs.AddObject(tableupdatelog);
            }

            this._context.SaveChanges();
        }