partial void DeleteMessaging(Messaging instance);
 partial void UpdateMessaging(Messaging instance);
 partial void InsertMessaging(Messaging instance);
		private void detach_Messagings(Messaging entity)
		{
			this.SendPropertyChanging();
			entity.LoginInfo = null;
		}
		private void attach_Messagings(Messaging entity)
		{
			this.SendPropertyChanging();
			entity.LoginInfo = this;
		}
        public void SendMessage(string to,string subject,string body,string from, string time)
        {
            Messaging m = new Messaging()
            {
                ID = to,
                Subject = subject,
                Message = body,
                From = from,
                Time = time
            };

            dataContext.GetTable<Messaging>().InsertOnSubmit(m);
            try
            {
                dataContext.SubmitChanges();
            }
            catch (Exception ex)
            {

            }
        }