Class FluentEntity
Defines the fluent entity type.
Namespace: StylelabsStylelabs.MSdkFluentModels
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentEntityConstructors
FluentEntity(IEntity, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentEntity class.
Declaration
RequestResponse
public FluentEntity(IEntity entity, IEntitiesClient entities, IEntityLoadConfiguration entityLoadConfiguration = null)Parameters
| Type | Name | Description |
|---|---|---|
| IEntity | entity |
The entity. |
| IEntitiesClient | entities |
The entities. |
| IEntityLoadConfiguration | entityLoadConfiguration |
The load configuration. |
Properties
Cultures
Declaration
RequestResponse
public IReadOnlyList<CultureInfo> Cultures { get; }Property Value
| Type | Description |
|---|---|
| IReadOnlyList<>CultureInfo |
DefinitionName
Declaration
RequestResponse
public string DefinitionName { get; }Property Value
| Type | Description |
|---|---|
| string |
Id
Declaration
RequestResponse
public long? Id { get; }Property Value
| Type | Description |
|---|---|
| long |
Identifier
Declaration
RequestResponse
public string Identifier { get; set; }Property Value
| Type | Description |
|---|---|
| string |
InheritsSecurity
Declaration
RequestResponse
public bool InheritsSecurity { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
IsNew
Declaration
RequestResponse
public bool IsNew { get; }Property Value
| Type | Description |
|---|---|
| bool |
IsPathRoot
Declaration
RequestResponse
public bool IsPathRoot { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
IsSystemOwned
Declaration
RequestResponse
public bool IsSystemOwned { get; set; }Property Value
| Type | Description |
|---|---|
| bool |
this[string, CultureInfo]
Gets the property value in the specified culture.
Declaration
RequestResponse
public object this[string name, CultureInfo cultureInfo] { get; set; }Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
The property name. |
| CultureInfo | cultureInfo |
The culture info. |
Property Value
| Type | Description |
|---|---|
| object |
this[string]
Gets the property value.
Declaration
RequestResponse
public object this[string name] { get; set; }Parameters
| Type | Name | Description |
|---|---|---|
| string | name |
The property name. |
Property Value
| Type | Description |
|---|---|
| object |
LockedBy
Declaration
RequestResponse
public long? LockedBy { get; }Property Value
| Type | Description |
|---|---|
| long |
LockedOn
Declaration
RequestResponse
public DateTime? LockedOn { get; }Property Value
| Type | Description |
|---|---|
| DateTime |
Object
Gets or sets the IEntity.
Declaration
RequestResponse
public IEntity Object { get; set; }Property Value
| Type | Description |
|---|---|
| IEntity |
Version
Declaration
RequestResponse
public long Version { get; }Property Value
| Type | Description |
|---|---|
| long |
Methods
Child(string, Action<IParentToOneChildRelation>)
Declaration
RequestResponse
public FluentEntity Child(string relationName, Action<IParentToOneChildRelation> relationDelegate)Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IParentToOneChildRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Children(string, Action<IParentToManyChildrenRelation>)
Declaration
RequestResponse
public FluentEntity Children(string relationName, Action<IParentToManyChildrenRelation> relationDelegate)Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IParentToManyChildrenRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Delete()
Declaration
RequestResponse
public void Delete()GetPropertyValue<T>(string, Action<T>)
Declaration
RequestResponse
public FluentEntity GetPropertyValue<T>(string name, Action<T> propertyValueAccessor)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| Action<> | propertyValueAccessor |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Type Parameters
| Name | Description |
|---|---|
| T |
GetPropertyValue<T>(string, CultureInfo, Action<T>)
Declaration
RequestResponse
public FluentEntity GetPropertyValue<T>(string name, CultureInfo culture, Action<T> propertyValueAccessor)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| CultureInfo | culture | |
| Action<> | propertyValueAccessor |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Type Parameters
| Name | Description |
|---|---|
| T |
Parent(string, Action<IChildToOneParentRelation>)
Declaration
RequestResponse
public FluentEntity Parent(string relationName, Action<IChildToOneParentRelation> relationDelegate)Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IChildToOneParentRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Parents(string, Action<IChildToManyParentsRelation>)
Declaration
RequestResponse
public FluentEntity Parents(string relationName, Action<IChildToManyParentsRelation> relationDelegate)Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IChildToManyParentsRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Reload()
Declaration
RequestResponse
public FluentEntity Reload()Returns
| Type | Description |
|---|---|
| FluentEntity |
Save()
Declaration
RequestResponse
public FluentEntity Save()Returns
| Type | Description |
|---|---|
| FluentEntity |
SetPropertyValue(string, CultureInfo, object)
Declaration
RequestResponse
public FluentEntity SetPropertyValue(string name, CultureInfo culture, object value)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| CultureInfo | culture | |
| object | value |
Returns
| Type | Description |
|---|---|
| FluentEntity |
SetPropertyValue(string, object)
Declaration
RequestResponse
public FluentEntity SetPropertyValue(string name, object value)Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| object | value |
Returns
| Type | Description |
|---|---|
| FluentEntity |