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

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Source/Data/Linq/TableT.cs	Thu Mar 27 21:46:09 2014 +0400
@@ -0,0 +1,60 @@
+using System;
+using System.Linq.Expressions;
+
+namespace BLToolkit.Data.Linq
+{
+	public class Table<T> : ExpressionQuery<T>, ITable
+	{
+		public Table(IDataContextInfo dataContextInfo, Expression expression)
+		{
+			Init(dataContextInfo, expression);
+		}
+
+		public Table(IDataContextInfo dataContextInfo)
+		{
+			Init(dataContextInfo, null);
+		}
+
+#if !SILVERLIGHT
+
+		public Table()
+		{
+			Init(null, null);
+		}
+
+		public Table(Expression expression)
+		{
+			Init(null, expression);
+		}
+		
+#endif
+
+		public Table(IDataContext dataContext)
+		{
+			Init(dataContext == null ? null : new DataContextInfo(dataContext), null);
+		}
+
+		public Table(IDataContext dataContext, Expression expression)
+		{
+			Init(dataContext == null ? null : new DataContextInfo(dataContext), expression);
+		}
+
+		#region Overrides
+
+#if OVERRIDETOSTRING
+
+		public override string ToString()
+		{
+			return "Table(" + typeof (T).Name + ")";
+		}
+
+#endif
+
+		#endregion
+
+		public object Select(object p)
+		{
+			throw new NotImplementedException();
+		}
+	}
+}