/// <summary> /// Deprecated Method for adding a new object to the Labels EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToLabels(Label label) { base.AddObject("Labels", label); }
/// <summary> /// Create a new Label object. /// </summary> /// <param name="sourceId">Initial value of the SourceId property.</param> /// <param name="sourceType">Initial value of the SourceType property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="createdBy">Initial value of the CreatedBy property.</param> /// <param name="createdDate">Initial value of the CreatedDate property.</param> public static Label CreateLabel(global::System.Int32 sourceId, global::System.Int32 sourceType, global::System.String name, global::System.Int32 createdBy, global::System.DateTime createdDate) { Label label = new Label(); label.SourceId = sourceId; label.SourceType = sourceType; label.Name = name; label.CreatedBy = createdBy; label.CreatedDate = createdDate; return label; }