DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Linq.DatabaseExtensions Class Reference

Static Public Member Functions

static IQueryProvider GetQueryProvider (this IDatabase database, ProviderSettings settings)
 

Detailed Description

Definition at line 10 of file DatabaseExtensions.cs.

Member Function Documentation

static IQueryProvider Deveel.Data.Linq.DatabaseExtensions.GetQueryProvider ( this IDatabase  database,
ProviderSettings  settings 
)
inlinestatic

Definition at line 11 of file DatabaseExtensions.cs.

11  {
12  var userName = settings.UserName;
13  var password = settings.Password;
14  var connection = (DbConnection) database.CreateDbConnection(userName, password);
15  var queryMapping = settings.MappingModel.CreateQueryMapping();
16 
17  return new DeveelDbProvider(connection, queryMapping, new EntityPolicy());
18  }

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