PageRenderTime 40ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/Source/facebook.Linq/Linq/Common.cs

https://bitbucket.org/assaframan/facebooklinq
C# | 48 lines | 29 code | 4 blank | 15 comment | 0 complexity | ed33e3846fbd79b71b1e67ab68f516d1 MD5 | raw file
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Data.Linq;
  6. using System.Linq.Expressions;
  7. using System.IO;
  8. namespace facebook.Linq
  9. {
  10. class Error
  11. {
  12. internal static Exception ArgumentNull(string p)
  13. {
  14. return new ArgumentException("argument is null", p);
  15. }
  16. internal static Exception ExpectedQueryableArgument(string p, Type type)
  17. {
  18. return new ArgumentException("argument is not of expected type: "+type.FullName, p);
  19. }
  20. }
  21. internal interface IFqlProvider
  22. {
  23. TextWriter Log { get; set; }
  24. string ExecuteFqlQuery(string query);
  25. //// Methods
  26. //void ClearConnection();
  27. //ICompiledQuery Compile(Expression query);
  28. //void CreateDatabase();
  29. //bool DatabaseExists();
  30. //void DeleteDatabase();
  31. IExecuteResult Execute(Expression query, Type tableRowType);
  32. //DbCommand GetCommand(Expression query);
  33. string GetQueryText(Expression query);
  34. SqlNode GetSqlTree(Expression expression);
  35. //void Initialize(IDataServices dataServices, object connection);
  36. //IMultipleResults Translate(DbDataReader reader);
  37. //IEnumerable Translate(Type elementType, DbDataReader reader);
  38. //// Properties
  39. //int CommandTimeout { get; set; }
  40. //DbConnection Connection { get; }
  41. //TextWriter Log { get; set; }
  42. //DbTransaction Transaction { get; set; }
  43. }
  44. }