Exemplo n.º 1
0
Arquivo: Test.cs Projeto: wpmyj/OF2.0
        private static SmsObj getsms()
        {
            SmsObj sms = new SmsObj();

            sms.phoneNumbers.Add("13650367330");
            sms.smsContent = "zhong国24";
            return(sms);
        }
Exemplo n.º 2
0
	private void detach_SmsObjs(SmsObj entity)
	{
		this.SendPropertyChanging();
		entity.SmsType = null;
	}
Exemplo n.º 3
0
	private void attach_SmsObjs(SmsObj entity)
	{
		this.SendPropertyChanging();
		entity.SmsType = this;
	}
Exemplo n.º 4
0
 partial void DeleteSmsObj(SmsObj instance);
Exemplo n.º 5
0
 partial void UpdateSmsObj(SmsObj instance);
Exemplo n.º 6
0
 partial void InsertSmsObj(SmsObj instance);
Exemplo n.º 7
0
 public bool InsertSMS(string SMSCode, int SmsParentId, string senderNumber, int SenderType, string ReceiverPhone, int ReceiverType, 
     DateTime Date, string Subject, string Content,
     bool IsSendSuccess, bool IsDelete, bool IsRead, int SmsTypeId, int PromotionId)
 {
     try
     {
         SmsObj sms = new SmsObj();
         sms.SMSCode = SMSCode;
         sms.SenderNumber = senderNumber;
         sms.ParentSmsId = SmsParentId;
         sms.SenderType = SenderType;
         sms.ReceiverNumber = ReceiverPhone;
         sms.ReceiverType = ReceiverType;
         sms.Date = Date;
         sms.Subject = Subject;
         sms.Content = Content;
         sms.IsSendSuccess = IsSendSuccess;
         sms.IsDeleted = IsDelete;
         sms.IsRead = IsRead;
         sms.SmsTypeId = SmsTypeId;
         sms.PromotionId = PromotionId;
         db.SmsObjs.InsertOnSubmit(sms);
         db.SubmitChanges();
         return true;
     }
     catch (Exception)
     {
         return false;
     }
 }