Show / Hide Table of Contents

Class RecordSetProvider

Class which can convert entities into sets of Record-instances.

Inheritance
Object
RecordSetProvider
Implements
IRecordSetProvider
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.

Implements

IRecordSetProvider

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top