示例#1
0
 public bool AddNewRule(string Title, int Value, int Days)
 {
     CancellationFareDetail cfd = new CancellationFareDetail
     {
         CFD_TITLE = Title,
         CFD_VALUE = Value,
         CFD_DAY_BEFORE_RUN = Days
     };
     db.CancellationFareDetails.InsertOnSubmit(cfd);
     try{
         db.SubmitChanges();
         return true;
     }catch(Exception ex){
         return false;
     }
 }
示例#2
0
 partial void DeleteCancellationFareDetail(CancellationFareDetail instance);
示例#3
0
 partial void UpdateCancellationFareDetail(CancellationFareDetail instance);
示例#4
0
 partial void InsertCancellationFareDetail(CancellationFareDetail instance);