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