예제 #1
0
        public static void DeleteFine(string fineID)
        {
            Fine fine = fineDataContext.Fines.Where <Fine>(anonymous => anonymous.SerialNumber == fineID).Single();

            fineDataContext.Fines.DeleteOnSubmit(fine);
            fineDataContext.SubmitChanges();
        }
예제 #2
0
        public static void UpdateFine(string fineId, byte paid, decimal?amount)
        {
            Fine fine = fineDataContext.Fines.Where <Fine>(anonymous => anonymous.SerialNumber == fineId).Single();

            fine.Paid   = paid;
            fine.Amount = amount;

            fineDataContext.SubmitChanges();
        }
예제 #3
0
 partial void DeleteFine(Fine instance);
예제 #4
0
 partial void UpdateFine(Fine instance);
예제 #5
0
 partial void InsertFine(Fine instance);
예제 #6
0
 public static void AddNewFine(Fine fine)
 {
     fineDataContext.AddNewFine(fine.Type, fine.SerialNumber, fine.Date, fine.Policeman, fine.DrivingLicenseNumber, fine.Paid, fine.Reason, fine.Amount, fine.Location, fine.Hour);
     fineDataContext.SubmitChanges();
 }