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