Пример #1
0
        /// <summary>
        /// Create a new AutoService object.
        /// </summary>
        /// <param name="autoServiceID">Initial value of the AutoServiceID property.</param>
        /// <param name="serviceName">Initial value of the ServiceName property.</param>
        /// <param name="servicePrice">Initial value of the ServicePrice property.</param>
        public static AutoService CreateAutoService(global::System.Int32 autoServiceID, global::System.String serviceName, global::System.Decimal servicePrice)
        {
            AutoService autoService = new AutoService();

            autoService.AutoServiceID = autoServiceID;
            autoService.ServiceName   = serviceName;
            autoService.ServicePrice  = servicePrice;
            return(autoService);
        }
Пример #2
0
 /// <summary>
 /// Create a new AutoService object.
 /// </summary>
 /// <param name="autoServiceID">Initial value of the AutoServiceID property.</param>
 /// <param name="serviceName">Initial value of the ServiceName property.</param>
 /// <param name="servicePrice">Initial value of the ServicePrice property.</param>
 public static AutoService CreateAutoService(global::System.Int32 autoServiceID, global::System.String serviceName, global::System.Decimal servicePrice)
 {
     AutoService autoService = new AutoService();
     autoService.AutoServiceID = autoServiceID;
     autoService.ServiceName = serviceName;
     autoService.ServicePrice = servicePrice;
     return autoService;
 }
Пример #3
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AutoServices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAutoServices(AutoService autoService)
 {
     base.AddObject("AutoServices", autoService);
 }
Пример #4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AutoServices EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAutoServices(AutoService autoService)
 {
     base.AddObject("AutoServices", autoService);
 }