Example #1
0
        /// <summary>
        /// Update into KFChatLog
        /// </summary>
        /// <param name="kfchatlog">KFChatLog</param>
        public void UpdateKFChatLog(KFChatLog kfchatlog)
        {
            if (kfchatlog == null)
            {
                return;
            }

            if (this._context.IsAttached(kfchatlog))
            {
                this._context.KFChatLogs.Attach(kfchatlog);
            }

            this._context.SaveChanges();
        }
Example #2
0
        /// <summary>
        /// Insert into KFChatLog
        /// </summary>
        /// <param name="kfchatlog">KFChatLog</param>
        public void InsertKFChatLog(KFChatLog kfchatlog)
        {
            if (kfchatlog == null)
            {
                return;
            }

            if (!this._context.IsAttached(kfchatlog))
            {
                this._context.KFChatLogs.AddObject(kfchatlog);
            }

            this._context.SaveChanges();
        }