/// <summary> /// Update into XMNickAchieveValue /// </summary> /// <param name="xmnickachievevalue">XMNickAchieveValue</param> public void UpdateXMNickAchieveValue(XMNickAchieveValue xmnickachievevalue) { if (xmnickachievevalue == null) { return; } if (this._context.IsAttached(xmnickachievevalue)) { this._context.XMNickAchieveValue.Attach(xmnickachievevalue); } this._context.SaveChanges(); }
/// <summary> /// Insert into XMNickAchieveValue /// </summary> /// <param name="xmnickachievevalue">XMNickAchieveValue</param> public void InsertXMNickAchieveValue(XMNickAchieveValue xmnickachievevalue) { if (xmnickachievevalue == null) { return; } if (!this._context.IsAttached(xmnickachievevalue)) { this._context.XMNickAchieveValue.AddObject(xmnickachievevalue); } this._context.SaveChanges(); }