public static void Add(string name, string value) { try { ERP_Setting s = new ERP_Setting(); s.setting = name; s.value = value; s.modified_by = AppData.CurrentUser.id; s.created_at = DateTime.Now; s.updated_at = DateTime.Now; Database.ERP.ERP_Settings.InsertOnSubmit(s); Database.ERP.SubmitChanges(); } catch (Exception) { throw; } }
public static void Save(ERP_Setting s) { s.modified_by = AppData.CurrentUser.id; s.updated_at = DateTime.Now; Database.ERP.SubmitChanges(); }
partial void UpdateERP_Setting(ERP_Setting instance);
partial void DeleteERP_Setting(ERP_Setting instance);
partial void InsertERP_Setting(ERP_Setting instance);