Class BatchTaskDefinitionRecordDataExtensions
Extension methods to make it easy to fetch BatchTaskDefinitionRecordData objects from the database,
using the
Inheritance
System.Object
BatchTaskDefinitionRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class BatchTaskDefinitionRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<BatchTaskDefinitionTableInfo>)
From a TargetedDataRecord<BatchTaskDefinitionTableInfo>, create and populate a BatchTaskDefinitionRecordData POCO object
Declaration
public static BatchTaskDefinitionRecordData FromRecord(this TargetedDataRecord<BatchTaskDefinitionTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<BatchTaskDefinitionTableInfo> | record |
Returns
Type | Description |
---|---|
BatchTaskDefinitionRecordData |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
/* add joins, return fields etc. as you wish */
s.ReturnFields.Add(s.Table.All);
var result = s.Records().Select(r => new { BatchTaskDefinitionItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<BatchTaskDefinitionTableInfo>)
From a TargetedSelect<BatchTaskDefinitionTableInfo>, execute it and return an IEnumerable<BatchTaskDefinitionRecordData> with the results
Declaration
public static IEnumerable<BatchTaskDefinitionRecordData> FromSelect(this TargetedSelect<BatchTaskDefinitionTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<BatchTaskDefinitionTableInfo> | select |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BatchTaskDefinitionRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(BatchTaskDefinitionRecordData)
Declaration
public static Insert ToInsert(this BatchTaskDefinitionRecordData record)
Parameters
Type | Name | Description |
---|---|---|
BatchTaskDefinitionRecordData | record |
Returns
Type | Description |
---|---|
Insert |
ToInserts(IEnumerable<BatchTaskDefinitionRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BatchTaskDefinitionRecordData> records)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<BatchTaskDefinitionRecordData> | records |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Insert> |