Exemplo n.º 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the AttributeSets EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToAttributeSets(AttributeSet attributeSet)
 {
     base.AddObject("AttributeSets", attributeSet);
 }
Exemplo n.º 2
0
 public static IEnumerable <ToSic.Eav.Attribute> GetAttributes(this ToSic.Eav.AttributeSet attributeSet)
 {
     return(attributeSet.AttributesInSets.Select(item => item.Attribute).ToList());
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 public static IEnumerable <string> GetEntitiesAttributeNames(this ToSic.Eav.AttributeSet attributeSet)
 {
     return(attributeSet.AttributesInSets.Select(item => item.Attribute.StaticName).ToList());
 }