示例#1
0
 public void AddItem(TVItem item)
 {
     using (var context = new TVItemsDataContext(_connectionString))
     {
         context.TVItems.InsertOnSubmit(item);
         context.SubmitChanges();
     }
 }
示例#2
0
 public void UpdateItem(TVItem item)
 {
     using (var context = new TVItemsDataContext(_connectionString))
     {
         context.TVItems.Attach(item);
         context.Refresh(RefreshMode.KeepCurrentValues, item);
         context.SubmitChanges();
     }
 }
示例#3
0
 partial void DeleteTVItem(TVItem instance);
示例#4
0
 partial void UpdateTVItem(TVItem instance);
示例#5
0
 partial void InsertTVItem(TVItem instance);