public static void AddMlwrClassItem(Int32 mlwrclassid, String evdesk, String evparam) { using (SandBoxDataContext db = new SandBoxDataContext()) { Int32 eventid = db.EventsEventDescriptions.FirstOrDefault<EventsEventDescriptions>(x => x.EventsEventDescription == evdesk).EventID; Int32 moduleid = db.ModulesVsEvents.FirstOrDefault<ModulesVsEvents>(x => x.Event == eventid).Module; MlwrClassItem mlwrclitm = new MlwrClassItem() { MlwrClassId = mlwrclassid, ModuleId = moduleid, EventId = eventid, Param = evparam }; db.MlwrClassItems.InsertOnSubmit(mlwrclitm); db.SubmitChanges(); } // TableUpdated(Table.MLWRS); }
partial void UpdateMlwrClassItem(MlwrClassItem instance);
partial void DeleteMlwrClassItem(MlwrClassItem instance);
partial void InsertMlwrClassItem(MlwrClassItem instance);