Ejemplo n.º 1
0
 /// <summary>
 /// Create a new Producer object.
 /// </summary>
 /// <param name="id">Initial value of Id.</param>
 /// <param name="name">Initial value of Name.</param>
 public static Producer CreateProducer(int id, string name)
 {
     Producer producer = new Producer();
     producer.Id = id;
     producer.Name = name;
     return producer;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Producers EntitySet.
 /// </summary>
 public void AddToProducers(Producer producer)
 {
     base.AddObject("Producers", producer);
 }