partial         void Orders_Inserting(Order entity)
        {
            if (entity.DeliveryCharge == null)
            {
                entity.DeliveryCharge = entity.Account.DeliveryCharge;
            }
        }
 partial void Orders_Validate(Order entity, EntitySetValidationResultsBuilder results)
 {
     if (entity.OrderDate != null & entity.DatePaid != null)
     {
         if (entity.DatePaid < entity.OrderDate)
         {
             results.AddEntityError("The order cannot be paid foe before it is placced");
         }
     }
 }