annotate Source/Data/Linq/Settings.cs @ 1:8f65451dc28f
Исправлена проблема с фабрикой и выборкой нескольких объектов в linq выражении
author |
cin |
date |
Fri, 28 Mar 2014 01:04:56 +0400 |
parents |
f990fcb411a9 |
children |
|
rev |
line source |
0
|
1 using System;
|
|
2
|
|
3 namespace BLToolkit.Data.Linq
|
|
4 {
|
|
5 public static class Settings
|
|
6 {
|
|
7 #if SILVERLIGHT
|
|
8 public static Func<string,IDataContext> CreateDefaultDataContext = config => { throw new InvalidOperationException(); };
|
|
9 #else
|
|
10 public static Func<string,IDataContext> CreateDefaultDataContext = config => new DbManager(config ?? DbManager.DefaultConfiguration);
|
|
11 #endif
|
|
12 }
|
|
13 }
|