/// <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(); } }
private void detach_MonitorsPreferences(MonitorsPreference entity) { this.SendPropertyChanging(); entity.Monitor = null; }
partial void DeleteMonitorsPreference(MonitorsPreference instance);
partial void UpdateMonitorsPreference(MonitorsPreference instance);
partial void InsertMonitorsPreference(MonitorsPreference instance);
private void attach_MonitorsPreferences(MonitorsPreference entity) { this.SendPropertyChanging(); entity.Customer = this; }