Beispiel #1
0
        public override void AddChatMessage(ChatMessage msg)
        {
            using (LCSKDbDataContext db = new LCSKDbDataContext(connectionString))
            {
                LiveChat_ChatMessage entity = new LiveChat_ChatMessage();
                entity.ChatID   = msg.ChatId;
                entity.FromName = msg.Name;
                entity.Message  = msg.Message;
                //TODO: Change SentDate to DateTime
                //entity.SentDate = DateTime.Now;

                db.LiveChat_ChatMessages.InsertOnSubmit(entity);
                db.SubmitChanges();
            }
        }
Beispiel #2
0
		public override void AddChatMessage(ChatMessage msg)
		{
			using (LCSKDbDataContext db = new LCSKDbDataContext(connectionString))
			{
				LiveChat_ChatMessage entity = new LiveChat_ChatMessage();
				entity.ChatID = msg.ChatId;
				entity.FromName = msg.Name;
				entity.Message = msg.Message;
				//TODO: Change SentDate to DateTime
				//entity.SentDate = DateTime.Now;

				db.LiveChat_ChatMessages.InsertOnSubmit(entity);
				db.SubmitChanges();
			}
		}
Beispiel #3
0
 partial void DeleteLiveChat_ChatMessage(LiveChat_ChatMessage instance);
Beispiel #4
0
 partial void UpdateLiveChat_ChatMessage(LiveChat_ChatMessage instance);
Beispiel #5
0
 partial void InsertLiveChat_ChatMessage(LiveChat_ChatMessage instance);
Beispiel #6
0
 partial void DeleteLiveChat_ChatMessage(LiveChat_ChatMessage instance);
Beispiel #7
0
 partial void UpdateLiveChat_ChatMessage(LiveChat_ChatMessage instance);
Beispiel #8
0
 partial void InsertLiveChat_ChatMessage(LiveChat_ChatMessage instance);