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