/// <summary> /// 保存到数据库中 /// </summary> public void SaveToDatabase() { lock (m_lock) { using (PlayerBussiness pb = new PlayerBussiness()) { foreach (AbstractBuffer buffer in m_buffers) { pb.SaveBuffer(buffer.Info); } foreach (BufferInfo info in m_clearList) { pb.SaveBuffer(info); } m_clearList.Clear(); } } }