logo
logo

Class FluentEntity

Defines the fluent entity type.

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

Constructors

FluentEntity(IEntity, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentEntity class.

Declaration
public FluentEntity(IEntity entity, IEntitiesClient entities, IEntityLoadConfiguration entityLoadConfiguration = null)
Parameters
Type Name Description
IEntity entity
IEntitiesClient entities
IEntityLoadConfiguration entityLoadConfiguration

Properties

Cultures

Declaration
public IReadOnlyList<CultureInfo> Cultures { get; }
Property Value
Type Description
IReadOnlyList<CultureInfo>

DefinitionName

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

Id

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

Identifier

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

InheritsSecurity

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

IsNew

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

IsPathRoot

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

IsSystemOwned

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

Item[String]

Gets the property value.

Declaration
public object this[string name] { get; set; }
Parameters
Type Name Description
System.String name

The property name.

Property Value
Type Description
System.Object

Item[String, CultureInfo]

Gets the property value in the specified culture.

Declaration
public object this[string name, CultureInfo cultureInfo] { get; set; }
Parameters
Type Name Description
System.String name

The property name.

CultureInfo cultureInfo

The culture info.

Property Value
Type Description
System.Object

LockedBy

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

LockedOn

Declaration
public DateTime? LockedOn { get; }
Property Value
Type Description
System.Nullable<DateTime>

Object

Gets the IEntity.

Declaration
public IEntity Object { get; set; }
Property Value
Type Description
IEntity

Version

Declaration
public long Version { get; }
Property Value
Type Description
System.Int64

Methods

Child(String, Action<IParentToOneChildRelation>)

Declaration
public FluentEntity Child(string relationName, Action<IParentToOneChildRelation> relationDelegate)
Parameters
Type Name Description
System.String relationName
Action<IParentToOneChildRelation> relationDelegate
Returns
Type Description
FluentEntity

Children(String, Action<IParentToManyChildrenRelation>)

Declaration
public FluentEntity Children(string relationName, Action<IParentToManyChildrenRelation> relationDelegate)
Parameters
Type Name Description
System.String relationName
Action<IParentToManyChildrenRelation> relationDelegate
Returns
Type Description
FluentEntity

Delete()

Declaration
public void Delete()

GetPropertyValue<T>(String, Action<T>)

Declaration
public FluentEntity GetPropertyValue<T>(string name, Action<T> propertyValueAccessor)
Parameters
Type Name Description
System.String name
Action<T> propertyValueAccessor
Returns
Type Description
FluentEntity
Type Parameters
Name Description
T

GetPropertyValue<T>(String, CultureInfo, Action<T>)

Declaration
public FluentEntity GetPropertyValue<T>(string name, CultureInfo culture, Action<T> propertyValueAccessor)
Parameters
Type Name Description
System.String name
CultureInfo culture
Action<T> propertyValueAccessor
Returns
Type Description
FluentEntity
Type Parameters
Name Description
T

Parent(String, Action<IChildToOneParentRelation>)

Declaration
public FluentEntity Parent(string relationName, Action<IChildToOneParentRelation> relationDelegate)
Parameters
Type Name Description
System.String relationName
Action<IChildToOneParentRelation> relationDelegate
Returns
Type Description
FluentEntity

Parents(String, Action<IChildToManyParentsRelation>)

Declaration
public FluentEntity Parents(string relationName, Action<IChildToManyParentsRelation> relationDelegate)
Parameters
Type Name Description
System.String relationName
Action<IChildToManyParentsRelation> relationDelegate
Returns
Type Description
FluentEntity

Reload()

Declaration
public FluentEntity Reload()
Returns
Type Description
FluentEntity

Save()

Declaration
public FluentEntity Save()
Returns
Type Description
FluentEntity

SetPropertyValue(String, CultureInfo, Object)

Declaration
public FluentEntity SetPropertyValue(string name, CultureInfo culture, object value)
Parameters
Type Name Description
System.String name
CultureInfo culture
System.Object value
Returns
Type Description
FluentEntity

SetPropertyValue(String, Object)

Declaration
public FluentEntity SetPropertyValue(string name, object value)
Parameters
Type Name Description
System.String name
System.Object value
Returns
Type Description
FluentEntity

Extension Methods

Can we improve this article ? Provide feedback