Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Instances EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToInstances(Instance instance)
 {
     base.AddObject("Instances", instance);
 }
 public void AddToInstances(Instance record)
 {
     _context.AddToInstances(record);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new Instance object.
 /// </summary>
 /// <param name="instanceId">Initial value of the InstanceId property.</param>
 /// <param name="instanceName">Initial value of the InstanceName property.</param>
 public static Instance CreateInstance(global::System.Int32 instanceId, global::System.String instanceName)
 {
     Instance instance = new Instance();
     instance.InstanceId = instanceId;
     instance.InstanceName = instanceName;
     return instance;
 }