Skip to content

ERPConnect.Linq.ERPTable 1

Namespace: ERPConnect.Linq
Assembly: ERPConnectStandard20.dll

Represents a table for a particular type in the underlying SAP system database.

public class ERPTable<TEntity> : IOrderedQueryable<TEntity>, IOrderedQueryable, IQueryable<TEntity>, IEnumerable<TEntity>, IQueryable, IEnumerable, IQueryProvider, IListSource

Type Parameters

TEntity

Inheritance

objectERPTable<TEntity>

Implements

IOrderedQueryable<TEntity>, IOrderedQueryable, IQueryable<TEntity>, IEnumerable<TEntity>, IQueryable, IEnumerable, IQueryProvider, IListSource

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

ERPTable(R3Connection)

Initializes a new instance of the ERPTable class with a given R3Connection.

public ERPTable(R3Connection connection)

Parameters

connection R3Connection

The R3Connection instance.

ERPTable(R3Connection, TextWriter)

Initializes a new instance of the ERPTable class with a given R3Connection and logger object.

public ERPTable(R3Connection connection, TextWriter log)

Parameters

connection R3Connection

The R3Connection instance.

log TextWriter

The logger instance.

ERPTable(ERPDataContext)

Initializes a new instance of the ERPTable class with a given ERPDataContext

public ERPTable(ERPDataContext context)

Parameters

context ERPDataContext

The ERPDataContext instance.

Properties

Connection

Gets the connection object used to connect the underlying database.

public R3Connection Connection { get; }

Property Value

R3Connection

ContainsListCollection

Gets a value indicating whether the collection is a collection of IList objects.

public bool ContainsListCollection { get; }

Property Value

bool

ElementType

Gets the type of the element(s) that are returned when the expression tree associated with this instance of IQueryable is executed.

public Type ElementType { get; }

Property Value

Type

Expression

Gets the expression tree that is associated with the instance of IQueryable.

public Expression Expression { get; }

Property Value

Expression

Log

Gets and sets the logger object.

public TextWriter Log { get; set; }

Property Value

TextWriter

Methods

CreateQuery<TElement>(Expression)

Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.

public IQueryable<TElement> CreateQuery<TElement>(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

IQueryable<TElement>

An IQueryable that can evaluate the query represented by the specified expression tree.

Type Parameters

TElement

CreateQuery(Expression)

Constructs an IQueryable object that can evaluate the query represented by a specified expression tree.

public IQueryable CreateQuery(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

IQueryable

An IQueryable that can evaluate the query represented by the specified expression tree.

Execute<TResult>(Expression)

Executes the strongly-typed query represented by a specified expression tree.

public TResult Execute<TResult>(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

TResult

The value that results from executing the specified query.

Type Parameters

TResult

The type of the value that results from executing the query.

Execute(Expression)

Executes the query represented by a specified expression tree.

public object Execute(Expression expression)

Parameters

expression Expression

An expression tree that represents a LINQ query.

Returns

object

The value that results from executing the specified query.

GetEnumerator()

Returns an enumerator that iterates through the collection.

public IEnumerator<TEntity> GetEnumerator()

Returns

IEnumerator<TEntity>

GetList()

Returns an IList that can be bound to a data source.

public IList GetList()

Returns

IList

Returns the collection.


Last update: January 4, 2024