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