Class FluentEntityDefinition
Defines the fluent entity definition type.
Inheritance
object
FluentEntityDefinition
Namespace: StylelabsStylelabs.MSdkFluentModels
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentEntityDefinition
Constructors
FluentEntityDefinition(IEntityDefinition, IEntityDefinitionsClient)
Initializes a new instance of the FluentEntityDefinition class.
Declaration
RequestResponse
public FluentEntityDefinition(IEntityDefinition entityDefinition, IEntityDefinitionsClient entityDefinitionsClient)
Parameters
Type | Name | Description |
---|---|---|
IEntityDefinition | entityDefinition |
The IEntityDefinition. |
IEntityDefinitionsClient | entityDefinitionsClient |
Properties
DisplayTemplate
Declaration
RequestResponse
public string DisplayTemplate { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Declaration
RequestResponse
public long? Id { get; }
Property Value
Type | Description |
---|---|
long |
IsManualSortingAllowed
Declaration
RequestResponse
public bool IsManualSortingAllowed { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsNew
Declaration
RequestResponse
public bool IsNew { get; }
Property Value
Type | Description |
---|---|
bool |
IsPathEnabledDefinition
Declaration
RequestResponse
public bool IsPathEnabledDefinition { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsSystemOwned
Declaration
RequestResponse
public bool IsSystemOwned { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsTaxonomyItemDefinition
Declaration
RequestResponse
public bool IsTaxonomyItemDefinition { get; set; }
Property Value
Type | Description |
---|---|
bool |
Labels
Declaration
RequestResponse
public IDictionary<CultureInfo, string> Labels { get; }
Property Value
Type | Description |
---|---|
IDictionary<, >CultureInfostring |
Name
Declaration
RequestResponse
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Object
Gets the IEntityDefinition.
Declaration
RequestResponse
public IEntityDefinition Object { get; }
Property Value
Type | Description |
---|---|
IEntityDefinition |
Methods
Delete()
Deletes the IEntityDefinition.
Declaration
RequestResponse
public void Delete()
DeleteMemberGroup(string)
Deletes a IMemberGroup.
Declaration
RequestResponse
public FluentEntityDefinition DeleteMemberGroup(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the group. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
The IEntityDefinition. |
DeleteRelation(string)
Deletes a RelationDefinition.
Declaration
RequestResponse
public FluentEntityDefinition DeleteRelation(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the relation definition. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
MemberGroup(string, Action<FluentMemberGroup>)
Gets a member group.
Declaration
RequestResponse
public FluentEntityDefinition MemberGroup(string name, Action<FluentMemberGroup> operations = null)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the member group. |
Action<>FluentMemberGroup | operations |
The operations to apply to the group. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
NewMemberGroup(string, Action<FluentMemberGroup>)
Adds a new MemberGroup(string, Action<FluentMemberGroup>).
Declaration
RequestResponse
public FluentEntityDefinition NewMemberGroup(string name, Action<FluentMemberGroup> initializer = null)
Parameters
Type | Name | Description |
---|---|---|
string | name |
The name of the group. |
Action<>FluentMemberGroup | initializer |
The member group initializer. |
Returns
Type | Description |
---|---|
FluentEntityDefinition |
Reload()
Reloads the IEntityDefinition.
Declaration
RequestResponse
public FluentEntityDefinition Reload()
Returns
Type | Description |
---|---|
FluentEntityDefinition |
Save()
Saves an IEntityDefinition.
Declaration
RequestResponse
public FluentEntityDefinition Save()
Returns
Type | Description |
---|---|
FluentEntityDefinition |