예제 #1
0
 public static bool AddPackage(Cts_Package _package)
 {
     try
     {
         using (DBContextDataContext db = new DBContextDataContext())
         {
             db.Cts_Packages.InsertOnSubmit(_package);
             db.SubmitChanges();
             if (_package.pk_consignment_id > 0)
             {
                 return(true);
             }
             else
             {
                 return(false);
             }
         }
     }
     catch (Exception Ex)
     {
         return(false);
     }
 }
 private void detach_Cts_Packages(Cts_Package entity)
 {
     this.SendPropertyChanging();
     entity.Cts_User_Master = null;
 }
 partial void DeleteCts_Package(Cts_Package instance);
 partial void UpdateCts_Package(Cts_Package instance);
 partial void InsertCts_Package(Cts_Package instance);