Ejemplo n.º 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();
     }
 }
Ejemplo n.º 2
0
 private void detach_MonitorsPreferences(MonitorsPreference entity)
 {
     this.SendPropertyChanging();
     entity.Monitor = null;
 }
Ejemplo n.º 3
0
 partial void DeleteMonitorsPreference(MonitorsPreference instance);
Ejemplo n.º 4
0
 partial void UpdateMonitorsPreference(MonitorsPreference instance);
Ejemplo n.º 5
0
 partial void InsertMonitorsPreference(MonitorsPreference instance);
Ejemplo n.º 6
0
 private void attach_MonitorsPreferences(MonitorsPreference entity)
 {
     this.SendPropertyChanging();
     entity.Customer = this;
 }