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