예제 #1
0
 public static void insert(mevent m)
 {
     using (var data = new instDataContext())
     {
         data.mevents.InsertOnSubmit(m);
         data.SubmitChanges();
     }
 }
예제 #2
0
 public static void insert(mevent m)
 {
     using (var data = new instDataContext())
     {
         data.mevents.InsertOnSubmit(m);
         data.SubmitChanges();
     }
 }
예제 #3
0
 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();
     }
 }
예제 #4
0
 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();
     }
 }
예제 #5
0
 partial void Deletemevent(mevent instance);
예제 #6
0
 partial void Updatemevent(mevent instance);
예제 #7
0
 partial void Insertmevent(mevent instance);