Class BinaryObjectLinkRecordDataExtensions
Extension methods to make it easy to fetch BinaryObjectLinkRecordData objects from the database,
using the
Inheritance
System.Object
BinaryObjectLinkRecordDataExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Rows
Assembly: SoDataBase.dll
Syntax
public static class BinaryObjectLinkRecordDataExtensions
Methods
FromRecord(TargetedDataRecord<BinaryObjectLinkTableInfo>)
From a TargetedDataRecord<BinaryObjectLinkTableInfo>, create and populate a BinaryObjectLinkRecordData POCO object
Declaration
public static BinaryObjectLinkRecordData FromRecord(this TargetedDataRecord<BinaryObjectLinkTableInfo> record)
Parameters
Type | Name | Description |
---|---|---|
TargetedDataRecord<BinaryObjectLinkTableInfo> | record |
Returns
Type | Description |
---|---|
BinaryObjectLinkRecordData |
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 { BinaryObjectLinkItem = r.FromRecord(), /* fetch other fields here */ });
FromSelect(TargetedSelect<BinaryObjectLinkTableInfo>)
From a TargetedSelect<BinaryObjectLinkTableInfo>, execute it and return an IEnumerable<BinaryObjectLinkRecordData> with the results
Declaration
public static IEnumerable<BinaryObjectLinkRecordData> FromSelect(this TargetedSelect<BinaryObjectLinkTableInfo> select)
Parameters
Type | Name | Description |
---|---|---|
TargetedSelect<BinaryObjectLinkTableInfo> | select |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BinaryObjectLinkRecordData> |
Examples
var s = S.NewSelect<DataRightTableInfo>( /* add meaningful restrictions here, or later */ );
var result = s.FromSelect();
ToInsert(BinaryObjectLinkRecordData)
Declaration
public static Insert ToInsert(this BinaryObjectLinkRecordData record)
Parameters
Type | Name | Description |
---|---|---|
BinaryObjectLinkRecordData | record |
Returns
Type | Description |
---|---|
Insert |
ToInserts(IEnumerable<BinaryObjectLinkRecordData>)
Declaration
public static IEnumerable<Insert> ToInserts(this IEnumerable<BinaryObjectLinkRecordData> records)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<BinaryObjectLinkRecordData> | records |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Insert> |