DeveelDB
20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
deveeldb.git
src
deveeldb-linq
Deveel.Data.Linq
DatabaseExtensions.cs
Go to the documentation of this file.
1
using
System
;
2
using
System
.Data.Common;
3
using
System
.Linq;
4
5
using
Deveel
.
Data
.
Client
;
6
7
using
IQToolkit
.Data;
8
9
namespace
Deveel
.Data.Linq {
10
public
static
class
DatabaseExtensions
{
11
public
static
IQueryProvider
GetQueryProvider
(
this
IDatabase
database,
ProviderSettings
settings) {
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
}
19
}
20
}
Deveel.Data.Linq.ProviderSettings
Definition:
ProviderSettings.cs:7
Deveel
System
Definition:
NonSerializedAttribute.cs:3
Deveel.Data.Linq.DatabaseExtensions.GetQueryProvider
static IQueryProvider GetQueryProvider(this IDatabase database, ProviderSettings settings)
Definition:
DatabaseExtensions.cs:11
Deveel.Data.Linq.DeveelDbProvider
Definition:
DeveelDbProvider.cs:10
Deveel.Data.Linq.ProviderSettings.UserName
string UserName
Definition:
ProviderSettings.cs:23
Deveel.Data.IDatabase
The representation of a single database in the system.
Definition:
IDatabase.cs:40
Deveel.Data.Linq.ProviderSettings.Password
string Password
Definition:
ProviderSettings.cs:25
Deveel.Data.Client
Definition:
ConnectionClient.cs:29
Deveel.Data.Linq.DatabaseExtensions
Definition:
DatabaseExtensions.cs:10
Deveel.Data
Definition:
ActiveSessionList.cs:22
Deveel.Data.Linq.ProviderSettings.MappingModel
MappingModel MappingModel
Definition:
ProviderSettings.cs:29
IQToolkit
Generated by
1.8.10