Пример #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;
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Producers EntitySet.
 /// </summary>
 public void AddToProducers(Producer producer)
 {
     base.AddObject("Producers", producer);
 }