/// <summary> /// Deprecated Method for adding a new object to the Instances EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToInstances(Instance instance) { base.AddObject("Instances", instance); }
public void AddToInstances(Instance record) { _context.AddToInstances(record); }
/// <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; }