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