logo
logo

Class FluentEntityDefinition

Defines the fluent entity definition type.

Inheritance
System.Object
FluentEntityDefinition
Namespace: Stylelabs.M.Sdk.Fluent.Models
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentEntityDefinition : object

Constructors

FluentEntityDefinition(IEntityDefinition, IEntityDefinitionsClient)

Initializes a new instance of FluentEntityDefinition.

Declaration
public FluentEntityDefinition(IEntityDefinition entityDefinition, IEntityDefinitionsClient entityDefinitionsClient)
Parameters
Type Name Description
IEntityDefinition entityDefinition

The IEntityDefinition.

IEntityDefinitionsClient entityDefinitionsClient

The IEntityDefinitionsClient

Properties

DisplayTemplate

Declaration
public string DisplayTemplate { get; set; }
Property Value
Type Description
System.String

Id

Declaration
public long? Id { get; }
Property Value
Type Description
System.Nullable<System.Int64>

IsManualSortingAllowed

Declaration
public bool IsManualSortingAllowed { get; set; }
Property Value
Type Description
System.Boolean

IsNew

Declaration
public bool IsNew { get; }
Property Value
Type Description
System.Boolean

IsPathEnabledDefinition

Declaration
public bool IsPathEnabledDefinition { get; set; }
Property Value
Type Description
System.Boolean

IsSystemOwned

Declaration
public bool IsSystemOwned { get; set; }
Property Value
Type Description
System.Boolean

IsTaxonomyItemDefinition

Declaration
public bool IsTaxonomyItemDefinition { get; set; }
Property Value
Type Description
System.Boolean

Labels

Declaration
public IDictionary<CultureInfo, string> Labels { get; }
Property Value
Type Description
IDictionary<CultureInfo, System.String>

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Object

Declaration
public IEntityDefinition Object { get; }
Property Value
Type Description
IEntityDefinition

Methods

Delete()

Deletes the IEntityDefinition

Declaration
public void Delete()

DeleteMemberGroup(String)

Deletes a IMemberGroup

Declaration
public FluentEntityDefinition DeleteMemberGroup(string name)
Parameters
Type Name Description
System.String name

The name of the group

Returns

DeleteRelation(String)

Declaration
public FluentEntityDefinition DeleteRelation(string name)
Parameters
Type Name Description
System.String name

The name of the relation definition

Returns

MemberGroup(String, Action<FluentMemberGroup>)

Gets a member group

Declaration
public FluentEntityDefinition MemberGroup(string name, Action<FluentMemberGroup> operations = null)
Parameters
Type Name Description
System.String name

The name of the member group

Action<FluentMemberGroup> operations

The operations to apply to the group

Returns

NewMemberGroup(String, Action<FluentMemberGroup>)

Declaration
public FluentEntityDefinition NewMemberGroup(string name, Action<FluentMemberGroup> initializer = null)
Parameters
Type Name Description
System.String name

The name of the group

Action<FluentMemberGroup> initializer

The member group initializer

Returns

Reload()

Reloads the IEntityDefinition

Declaration
public FluentEntityDefinition Reload()
Returns

Save()

Declaration
public FluentEntityDefinition Save()
Returns

Extension Methods

Can we improve this article ? Provide feedback