DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Package Functions | Properties | Private Member Functions | List of all members
Deveel.Data.Linq.QueryTable< T > Class Template Reference
Inheritance diagram for Deveel.Data.Linq.QueryTable< T >:

Public Member Functions

int Remove (T entity)
 
FindById (object id)
 
int Update (T entity)
 
int Add (T entity)
 

Package Functions

 QueryTable (QueryContext context)
 

Properties

QueryContext QueryContext [get, private set]
 
IEntityTable< T > EntityTable [get]
 
Expression IQueryable. Expression [get]
 
Type IQueryable. ElementType [get]
 
IQueryProvider IQueryable. Provider [get]
 

Private Member Functions

IEnumerator< T > IEnumerable< T >. GetEnumerator ()
 
IEnumerator IEnumerable. GetEnumerator ()
 

Detailed Description

Type Constraints
T :class 

Definition at line 10 of file QueryTable.cs.

Constructor & Destructor Documentation

Deveel.Data.Linq.QueryTable< T >.QueryTable ( QueryContext  context)
inlinepackage

Definition at line 11 of file QueryTable.cs.

11  {
12  QueryContext = context;
13  }

Member Function Documentation

int Deveel.Data.Linq.QueryTable< T >.Add ( entity)
inline

Definition at line 60 of file QueryTable.cs.

60  {
61  return EntityTable.Insert(entity);
62  }
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17
T Deveel.Data.Linq.QueryTable< T >.FindById ( object  id)
inline

Definition at line 45 of file QueryTable.cs.

45  {
46  if (id == null)
47  throw new ArgumentNullException("id");
48 
49  try {
50  return EntityTable.GetById(id);
51  } catch (Exception ex) {
52  throw new QueryException(String.Format("Error while querying type '{0}' by id.", typeof(T)), ex);
53  }
54  }
A long string in the system.
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17
IEnumerator<T> IEnumerable<T>. Deveel.Data.Linq.QueryTable< T >.GetEnumerator ( )
inlineprivate

Definition at line 21 of file QueryTable.cs.

21  {
22  return EntityTable.GetEnumerator();
23  }
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17
IEnumerator IEnumerable. Deveel.Data.Linq.QueryTable< T >.GetEnumerator ( )
inlineprivate

Definition at line 25 of file QueryTable.cs.

25  {
26  return EntityTable.GetEnumerator();
27  }
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17
int Deveel.Data.Linq.QueryTable< T >.Remove ( entity)
inline

Definition at line 41 of file QueryTable.cs.

41  {
42  return EntityTable.Delete(entity);
43  }
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17
int Deveel.Data.Linq.QueryTable< T >.Update ( entity)
inline

Definition at line 56 of file QueryTable.cs.

56  {
57  return EntityTable.Update(entity);
58  }
IEntityTable< T > EntityTable
Definition: QueryTable.cs:17

Property Documentation

Type IQueryable. Deveel.Data.Linq.QueryTable< T >.ElementType
getprivate

Definition at line 33 of file QueryTable.cs.

IEntityTable<T> Deveel.Data.Linq.QueryTable< T >.EntityTable
getprivate

Definition at line 17 of file QueryTable.cs.

Expression IQueryable. Deveel.Data.Linq.QueryTable< T >.Expression
getprivate

Definition at line 29 of file QueryTable.cs.

IQueryProvider IQueryable. Deveel.Data.Linq.QueryTable< T >.Provider
getprivate

Definition at line 37 of file QueryTable.cs.

Definition at line 15 of file QueryTable.cs.


The documentation for this class was generated from the following file: