Esempio n. 1
0
 public static void Add(C_taken temp)
 {
     using (UniversityDataDataContext conn = new UniversityDataDataContext())
     {
         conn.C_takens.InsertOnSubmit(temp);
         conn.SubmitChanges();
     }
 }
Esempio n. 2
0
 public static void Withdraw(C_taken temp)
 {
     using (UniversityDataDataContext conn = new UniversityDataDataContext())
     {
         var toDelete = from su in conn.C_takens
                        where su.sid == temp.sid
                        select su;
         conn.C_takens.DeleteAllOnSubmit(toDelete);
         conn.SubmitChanges();
     }
 }
 partial void DeleteC_taken(C_taken instance);
 partial void UpdateC_taken(C_taken instance);
 partial void InsertC_taken(C_taken instance);