/// <summary> /// Créez un nouvel objet WeightRangeService. /// </summary> /// <param name="weightRangeService_id">Valeur initiale de la propriété weightRangeService_id.</param> public static WeightRangeService CreateWeightRangeService(global::System.Int64 weightRangeService_id) { WeightRangeService weightRangeService = new WeightRangeService(); weightRangeService.weightRangeService_id = weightRangeService_id; return weightRangeService; }
/// <summary> /// Méthode déconseillée pour ajouter un nouvel objet à l'EntitySet WeightRangeService. Utilisez la méthode .Add de la propriété ObjectSet<T> associée à la place. /// </summary> public void AddToWeightRangeService(WeightRangeService weightRangeService) { base.AddObject("WeightRangeService", weightRangeService); }
//-------------------------------------------------- //WeightRangeService JSON Object public static Object weightRangeServiceObj(WeightRangeService weightRangeService) { return new { service_id = weightRangeService.service_id, weightRangeService_id = weightRangeService.weightRangeService_id, weightRangeService_tonMin = weightRangeService.weightRangeService_tonMin, weightRangeService_tonMax = weightRangeService.weightRangeService_tonMax, weightRangeService_priceFixed = weightRangeService.weightRangeService_priceFixed, weightRangeService_pricePerTon = weightRangeService.weightRangeService_pricePerTon }; }