public static void AddReport(Int32 researchId, Int32 modId, Int32 actionId, String obj, String target, String additional="") { using (SandBoxDataContext db = new SandBoxDataContext()) { Report report = new Report { ResearchId = researchId, ModuleId = modId, ActionId = actionId, Object = obj, Target = target, TIme = DateTime.Now, Additional = additional}; db.Reports.InsertOnSubmit(report); db.SubmitChanges(); } }
partial void UpdateReport(Report instance);
partial void DeleteReport(Report instance);
partial void InsertReport(Report instance);