Example #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Services EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToServices(Service service)
 {
     base.AddObject("Services", service);
 }
Example #2
0
 /// <summary>
 /// Create a new Service object.
 /// </summary>
 /// <param name="servicesID">Initial value of the ServicesID property.</param>
 /// <param name="name">Initial value of the Name property.</param>
 /// <param name="description">Initial value of the Description property.</param>
 /// <param name="content">Initial value of the Content property.</param>
 /// <param name="images">Initial value of the Images property.</param>
 /// <param name="type">Initial value of the Type property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static Service CreateService(global::System.Int32 servicesID, global::System.String name, global::System.String description, global::System.String content, global::System.String images, global::System.Int32 type, global::System.Int32 status)
 {
     Service service = new Service();
     service.ServicesID = servicesID;
     service.Name = name;
     service.Description = description;
     service.Content = content;
     service.Images = images;
     service.Type = type;
     service.Status = status;
     return service;
 }