Class FluentEntityDefinitions
Provides access to entity definitions in a fluent way.
Inheritance
Namespace: Stylelabs.M.Sdk.Fluent.Wrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentEntityDefinitions : object
Constructors
FluentEntityDefinitions(IEntityDefinitionsClient)
Initializes a new instance of the FluentEntityDefinitions class.
Declaration
public FluentEntityDefinitions(IEntityDefinitionsClient entityDefinitionsClient)
Parameters
Type | Name | Description |
---|---|---|
IEntityDefinitionsClient | entityDefinitionsClient | The entity definitions client |
Methods
Get(Int64)
Gets the FluentEntityDefinition instance by the specified id
.
Declaration
public FluentEntityDefinition Get(long id)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | id | Entity definition id. |
Returns
Type | Description |
---|---|
FluentEntityDefinition | The FluentEntityDefinition or null if the entity definition does not exist. |
Get(String)
Gets the FluentEntityDefinition instance by the specified name
.
Declaration
public FluentEntityDefinition Get(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Entity definition name (case insensitive). |
Returns
Type | Description |
---|---|
FluentEntityDefinition | The FluentEntityDefinition or null if the entity definition does not exist. |
GetMany(IEnumerable<Int64>)
Gets the FluentEntityDefinition instances by the ids of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.
Declaration
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<long> ids)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.Int64> | ids |
Returns
Type | Description |
---|---|
IEnumerable<FluentEntityDefinition> | Non null collection of FluentEntityDefinition instances. |
GetMany(IEnumerable<String>)
Gets the FluentEntityDefinition instances by the names of the definitions. The result can have a different ordering and size (when definitions don't exist) than the input.
Declaration
public IEnumerable<FluentEntityDefinition> GetMany(IEnumerable<string> names)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<System.String> | names | Entity definition names (case insensitive). |
Returns
Type | Description |
---|---|
IEnumerable<FluentEntityDefinition> | Non null collection of FluentEntityDefinition instances. |
New(String)
Creates an entity definition.
Declaration
public FluentEntityDefinition New(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the entity definition to create. |
Returns
Type | Description |
---|---|
FluentEntityDefinition | An instance of FluentEntityDefinition. |
Can we improve this article ? Provide feedback