Class LegalBaseRecordDataExtensions
Extension methods to make it easy to fetch LegalBaseRecordData objects from the database,
using the infrastructure
Inheritance
LegalBaseRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class LegalBaseRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<LegalBaseTableInfo>)
From a TargetedDataRecord<LegalBaseTableInfo>, create and populate a LegalBaseRecordData POCO object
Declaration
public static LegalBaseRecordData FromRecord(this TargetedDataRecord<LegalBaseTableInfo> record)
Parameters
Returns
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 { LegalBaseItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<LegalBaseTableInfo>)
From a TargetedSelect<LegalBaseTableInfo>, execute it and return an IEnumerable<LegalBaseRecordData> with the results
Declaration
public static IEnumerable<LegalBaseRecordData> FromSelect(this TargetedSelect<LegalBaseTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(LegalBaseRecordData)
Extension methods to make it easy to fetch LegalBaseRecordData objects from the database,
using the infrastructure
Declaration
public static Insert ToInsert(this LegalBaseRecordData record)
Parameters
Returns
ToInserts(IEnumerable<LegalBaseRecordData>)
Extension methods to make it easy to fetch LegalBaseRecordData objects from the database,
using the infrastructure
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<LegalBaseRecordData> records)
Parameters
Returns
ToRecordData(LegalBaseRow)
Extension methods to make it easy to fetch LegalBaseRecordData objects from the database,
using the infrastructure
Declaration
public static LegalBaseRecordData ToRecordData(this LegalBaseRow row)
Parameters
Returns