DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Protected Member Functions | List of all members
Deveel.Data.Linq.TableQueryTests.TestQueryContext Class Reference
Inheritance diagram for Deveel.Data.Linq.TableQueryTests.TestQueryContext:
Deveel.Data.Linq.QueryContext

Public Member Functions

 TestQueryContext (IQuery context)
 
- Public Member Functions inherited from Deveel.Data.Linq.QueryContext
 QueryContext (IQuery context)
 
QueryTable< T > Table< T > ()
 
void Dispose ()
 

Protected Member Functions

override void OnBuildMap (MappingContext mappingContext)
 
- Protected Member Functions inherited from Deveel.Data.Linq.QueryContext
virtual void Dispose (bool disposing)
 

Additional Inherited Members

- Package Functions inherited from Deveel.Data.Linq.QueryContext
IEntityTable< T > GetTable< T > ()
 
- Properties inherited from Deveel.Data.Linq.QueryContext
IQuery ParentContext [get, private set]
 
IQueryProvider Provider [get, set]
 

Detailed Description

Definition at line 101 of file TableQueryTests.cs.

Constructor & Destructor Documentation

Deveel.Data.Linq.TableQueryTests.TestQueryContext.TestQueryContext ( IQuery  context)
inline

Definition at line 102 of file TableQueryTests.cs.

103  : base(context) {
104  }

Member Function Documentation

override void Deveel.Data.Linq.TableQueryTests.TestQueryContext.OnBuildMap ( MappingContext  mappingContext)
inlineprotectedvirtual

Implements Deveel.Data.Linq.QueryContext.

Definition at line 106 of file TableQueryTests.cs.

106  {
107  mappingContext.Map<Person>()
108  .ToTable("people");
109  mappingContext.Map<Person>()
110  .Member(person => person.Id)
111  .HasName("id")
112  .IsPrimaryKey();
113  mappingContext.Map<Person>()
114  .Member(person => person.FirstName)
115  .HasName("first_name")
116  .IsNotNull();
117  }

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