/// <summary> /// Deprecated Method for adding a new object to the Descriptors EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToDescriptors(Descriptor descriptor) { base.AddObject("Descriptors", descriptor); }
/// <summary> /// Create a new Descriptor object. /// </summary> /// <param name="descriptorID">Initial value of the DescriptorID property.</param> /// <param name="descriptorName">Initial value of the DescriptorName property.</param> public static Descriptor CreateDescriptor(global::System.Int32 descriptorID, global::System.String descriptorName) { Descriptor descriptor = new Descriptor(); descriptor.DescriptorID = descriptorID; descriptor.DescriptorName = descriptorName; return descriptor; }