예제 #1
0
		private void detach_DatabaseUserMessage(DatabaseUserMessage entity)
		{
			this.SendPropertyChanging();
			entity.DatabaseUser = null;
		}
예제 #2
0
 //添加用户聊天信息
 public void AddUserMessage(string userName, Message msg)
 {
     DatabaseUser targetUser = (from u in dataContext.DatabaseUser
                                where u.UserName == userName
                                select u).Single();
     DatabaseUserMessage newUserMessage = new DatabaseUserMessage()
     {
         Time = msg.SendTime,
         Sender = msg.Sender,
         Receiver = msg.Receiver,
         Content = msg.Content,
         Type = msg.Type.ToString()
     };
     targetUser.DatabaseUserMessage.Add(newUserMessage);
     dataContext.SubmitChanges();
 }
예제 #3
0
 partial void UpdateDatabaseUserMessage(DatabaseUserMessage instance);
예제 #4
0
 partial void DeleteDatabaseUserMessage(DatabaseUserMessage instance);
예제 #5
0
 partial void InsertDatabaseUserMessage(DatabaseUserMessage instance);
예제 #6
0
 private void detach_DatabaseUserMessage(DatabaseUserMessage entity)
 {
     this.SendPropertyChanging();
     entity.DatabaseUser = null;
 }
예제 #7
0
 partial void DeleteDatabaseUserMessage(DatabaseUserMessage instance);
예제 #8
0
 partial void UpdateDatabaseUserMessage(DatabaseUserMessage instance);
예제 #9
0
 partial void InsertDatabaseUserMessage(DatabaseUserMessage instance);