/// <summary> /// Deprecated Method for adding a new object to the AttributeSets EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToAttributeSets(AttributeSet attributeSet) { base.AddObject("AttributeSets", attributeSet); }
public static IEnumerable <ToSic.Eav.Attribute> GetAttributes(this ToSic.Eav.AttributeSet attributeSet) { return(attributeSet.AttributesInSets.Select(item => item.Attribute).ToList()); }
/// <summary> /// Create a new AttributeSet object. /// </summary> /// <param name="attributeSetID">Initial value of the AttributeSetID property.</param> /// <param name="name">Initial value of the Name property.</param> /// <param name="description">Initial value of the Description property.</param> /// <param name="staticName">Initial value of the StaticName property.</param> /// <param name="changeLogIDCreated">Initial value of the ChangeLogIDCreated property.</param> /// <param name="appID">Initial value of the AppID property.</param> /// <param name="alwaysShareConfiguration">Initial value of the AlwaysShareConfiguration property.</param> public static AttributeSet CreateAttributeSet(global::System.Int32 attributeSetID, global::System.String name, global::System.String description, global::System.String staticName, global::System.Int32 changeLogIDCreated, global::System.Int32 appID, global::System.Boolean alwaysShareConfiguration) { AttributeSet attributeSet = new AttributeSet(); attributeSet.AttributeSetID = attributeSetID; attributeSet.Name = name; attributeSet.Description = description; attributeSet.StaticName = staticName; attributeSet.ChangeLogIDCreated = changeLogIDCreated; attributeSet.AppID = appID; attributeSet.AlwaysShareConfiguration = alwaysShareConfiguration; return attributeSet; }
public static IEnumerable <string> GetEntitiesAttributeNames(this ToSic.Eav.AttributeSet attributeSet) { return(attributeSet.AttributesInSets.Select(item => item.Attribute.StaticName).ToList()); }