Class FluentEntity
Defines the fluent entity type.
Inheritance
object
FluentEntity
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)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IParentToOneChildRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Children(string, Action)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IParentToManyChildrenRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Delete()
Declaration
GetPropertyValue(string, Action)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| Action<> | propertyValueAccessor |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Type Parameters
| Name | Description |
|---|---|
| T |
GetPropertyValue(string, CultureInfo, Action)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| CultureInfo | culture | |
| Action<> | propertyValueAccessor |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Type Parameters
| Name | Description |
|---|---|
| T |
Parent(string, Action)
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| string | relationName | |
| Action<>IChildToOneParentRelation | relationDelegate |
Returns
| Type | Description |
|---|---|
| FluentEntity |
Parents(string, Action)
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 |
Extension Methods
FluentEntityExtensions.AssertPropertyEmpty(FluentEntity, string, CultureInfo)
FluentEntityExtensions.AssertPropertyEmpty(FluentEntity, string)
FluentEntityExtensions.AssertPropertyEqual
FluentEntityExtensions.AssertPropertyEqual
FluentEntityExtensions.AssertPropertyGreater
FluentEntityExtensions.AssertPropertyGreater
FluentEntityExtensions.AssertPropertyGreaterOrEqual
FluentEntityExtensions.AssertPropertyGreaterOrEqual
FluentEntityExtensions.AssertPropertyLess
FluentEntityExtensions.AssertPropertyLess
FluentEntityExtensions.AssertPropertyLessOrEqual
FluentEntityExtensions.AssertPropertyLessOrEqual
FluentEntityExtensions.AssertPropertyNotEmpty(FluentEntity, string, CultureInfo)
FluentEntityExtensions.AssertPropertyNotEmpty(FluentEntity, string)
FluentEntityExtensions.AssertPropertyNotEqual
FluentEntityExtensions.AssertPropertyNotEqual
FluentEntityExtensions.AssertRelation(FluentEntity, string, RelationRole?, FluentEntity)