DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
QueryContextExtensions.cs
Go to the documentation of this file.
1 using System;
2 using System.Linq;
3 
4 using Deveel.Data.Mapping;
5 
6 using IQToolkit.Data;
7 
8 namespace Deveel.Data.Linq {
9  public static class QueryContextExtensions {
10  public static IQueryProvider GetQueryProvider(this IQuery context, MappingModel model) {
11  var queryMapping = model.CreateQueryMapping();
12  return new DeveelDbProvider(context, queryMapping, new EntityPolicy());
13  }
14  }
15 }
static IQueryProvider GetQueryProvider(this IQuery context, MappingModel model)