public static void insert(mevent m) { using (var data = new instDataContext()) { data.mevents.InsertOnSubmit(m); data.SubmitChanges(); } }
public static void update(mevent m) { using (var data = new instDataContext()) { var obj = data.mevents.Single(j => j.eid == m.eid); obj.ename = m.ename; obj.edescription = m.edescription; obj.edate = m.edate; obj.eplace = m.eplace; obj.etime = m.etime; data.SubmitChanges(); } }
partial void Deletemevent(mevent instance);
partial void Updatemevent(mevent instance);
partial void Insertmevent(mevent instance);