Show / Hide Table of Contents

Interface IRecordSetProvider

Interface for classes which can convert entities into sets of Record-instances.

Namespace: SuperOffice.Data
Assembly: SoCore.dll
Syntax
public interface IRecordSetProvider

Methods

GetRecordsFor<T>(T)

Converts the provided entity into a set of records.

Declaration
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
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.

Extension Methods

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