comparison Source/Data/Linq/TableT.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2 using System.Linq.Expressions;
3
4 namespace BLToolkit.Data.Linq
5 {
6 public class Table<T> : ExpressionQuery<T>, ITable
7 {
8 public Table(IDataContextInfo dataContextInfo, Expression expression)
9 {
10 Init(dataContextInfo, expression);
11 }
12
13 public Table(IDataContextInfo dataContextInfo)
14 {
15 Init(dataContextInfo, null);
16 }
17
18 #if !SILVERLIGHT
19
20 public Table()
21 {
22 Init(null, null);
23 }
24
25 public Table(Expression expression)
26 {
27 Init(null, expression);
28 }
29
30 #endif
31
32 public Table(IDataContext dataContext)
33 {
34 Init(dataContext == null ? null : new DataContextInfo(dataContext), null);
35 }
36
37 public Table(IDataContext dataContext, Expression expression)
38 {
39 Init(dataContext == null ? null : new DataContextInfo(dataContext), expression);
40 }
41
42 #region Overrides
43
44 #if OVERRIDETOSTRING
45
46 public override string ToString()
47 {
48 return "Table(" + typeof (T).Name + ")";
49 }
50
51 #endif
52
53 #endregion
54
55 public object Select(object p)
56 {
57 throw new NotImplementedException();
58 }
59 }
60 }