Class RecordSetProvider
Class which can convert entities into sets of Record-instances.
Implements
Namespace: SuperOffice.Data
Assembly: SoCore.dll
Syntax
[SoInject]
public class RecordSetProvider : Object, IRecordSetProvider
Constructors
RecordSetProvider()
Class which can convert entities into sets of Record-instances.
Declaration
public RecordSetProvider()
Properties
Delimiter
Gets or sets the delimiter used to delimit entity-bounderies when setting up the keys used for Record-values.
Declaration
public static string Delimiter { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
GetRecordsFor<T>(T)
Converts the provided entity into a set of records.
Declaration
public IEnumerable<Record> GetRecordsFor<T>(T instance)
Parameters
Type | Name | Description |
---|---|---|
T | instance | The instance to convert. |
Returns
Type | Description |
---|---|
IEnumerable<Record> | A set of records. |
Type Parameters
Name | Description |
---|---|
T | The type of entity to convert. |
GetRecordsFor<T>(T, String)
Converts the provided entity into a set of records.
Declaration
public IEnumerable<Record> GetRecordsFor<T>(T instance, string rootName)
Parameters
Type | Name | Description |
---|---|---|
T | instance | The instance to convert. |
String | rootName | Name of the root record. |
Returns
Type | Description |
---|---|
IEnumerable<Record> | A set of records. |
Type Parameters
Name | Description |
---|---|
T | The type of entity to convert. |