Class FormFieldRestrictionRecordDataExtensions
Inheritance
FormFieldRestrictionRecordDataExtensions
Assembly: SoDataBase.dll
public static class FormFieldRestrictionRecordDataExtensions
Methods
Declaration
public static FormFieldRestrictionRecordData FromRecord(this TargetedDataRecord<FormFieldRestrictionTableInfo> 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 { FormFieldRestrictionItem = r.FromRecord(), /* fetch other fields here */ });
From a TargetedSelect<FormFieldRestrictionTableInfo>, execute it and return an IEnumerable<FormFieldRestrictionRecordData> with the results
Declaration
public static IEnumerable<FormFieldRestrictionRecordData> FromSelect(this TargetedSelect<FormFieldRestrictionTableInfo> select)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
From a TargetedSelect<FormFieldRestrictionTableInfo>, execute it and return an IEnumerable<FormFieldRestrictionRecordData> with the results
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
public static IAsyncEnumerable<FormFieldRestrictionRecordData> FromSelectAsync(this TargetedSelect<FormFieldRestrictionTableInfo> select, CancellationToken cancellationToken = default)
Parameters
Returns
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
Declaration
public static Task<Insert> ToInsertAsync(this FormFieldRestrictionRecordData record, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public static IAsyncEnumerable<Insert> ToInsertsAsync(this IEnumerable<FormFieldRestrictionRecordData> records, CancellationToken cancellationToken = default)
Parameters
Returns
Declaration
public static FormFieldRestrictionRecordData ToRecordData(this FormFieldRestrictionRow row)
Parameters
Returns