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