예제 #1
0
 /// <summary>
 /// Method is used for inserting the customer and thier Monitor preference
 /// </summary>
 /// <param name="email"></param>
 /// <param name="monitor_no"></param>
 private void InsertCustomerPreference(string email, int monitor_no)
 {
     using (ChatBotDataModelDataContext dbcontext = new ChatBotDataModelDataContext())
     {
         ChatBotModelLib.MonitorsPreference monitorObj = new ChatBotModelLib.MonitorsPreference();
         monitorObj.customer_email = email;
         monitorObj.monitors_no    = monitor_no;
         monitorObj.check_in       = DateTime.Now;
         dbcontext.MonitorsPreferences.InsertOnSubmit(monitorObj);
         dbcontext.SubmitChanges();
     }
 }
예제 #2
0
 private void detach_MonitorsPreferences(MonitorsPreference entity)
 {
     this.SendPropertyChanging();
     entity.Monitor = null;
 }
예제 #3
0
 partial void DeleteMonitorsPreference(MonitorsPreference instance);
예제 #4
0
 partial void UpdateMonitorsPreference(MonitorsPreference instance);
예제 #5
0
 partial void InsertMonitorsPreference(MonitorsPreference instance);
예제 #6
0
 private void attach_MonitorsPreferences(MonitorsPreference entity)
 {
     this.SendPropertyChanging();
     entity.Customer = this;
 }