Class ConsentPurposeRecordDataExtensions
Inheritance
ConsentPurposeRecordDataExtensions
Assembly: SoDataBase.dll
Syntax
public static class ConsentPurposeRecordDataExtensions : Object
Methods
FromRecord(TargetedDataRecord<ConsentPurposeTableInfo>)
Declaration
public static ConsentPurposeRecordData FromRecord(this TargetedDataRecord<ConsentPurposeTableInfo> 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 { ConsentPurposeItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<ConsentPurposeTableInfo>)
From a TargetedSelect<ConsentPurposeTableInfo>, execute it and return an IEnumerable<ConsentPurposeRecordData> with the results
Declaration
public static IEnumerable<ConsentPurposeRecordData> FromSelect(this TargetedSelect<ConsentPurposeTableInfo> select)
Parameters
Returns
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(ConsentPurposeRecordData)
Declaration
public static Insert ToInsert(this ConsentPurposeRecordData record)
Parameters
Returns
ToInserts(IEnumerable<ConsentPurposeRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<ConsentPurposeRecordData> records)
Parameters
Returns
ToRecordData(ConsentPurposeRow)
Declaration
public static ConsentPurposeRecordData ToRecordData(this ConsentPurposeRow row)
Parameters
Returns