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