PageRenderTime 82ms CodeModel.GetById 10ms RepoModel.GetById 0ms app.codeStats 0ms

/Songhay.Data.GenericWeb/Procedure/List/List.Segments.cs

http://GenericWeb.codeplex.com
C# | 37 lines | 32 code | 2 blank | 3 comment | 4 complexity | 949fffd89e19c363fcfb84451e6dc15d MD5 | raw file
  1. using System.Collections.Generic;
  2. using System.Data;
  3. using System.Data.Common;
  4. using Songhay.Data.GenericWeb.Properties;
  5. namespace Songhay.Data.GenericWeb.Procedure
  6. {
  7. /// <summary>
  8. /// List procedures for Web-schema data.
  9. /// </summary>
  10. internal static partial class List
  11. {
  12. internal static string Segments(DbConnection commonConnection)
  13. {
  14. string s = null;
  15. if(commonConnection.State == ConnectionState.Open)
  16. {
  17. Dictionary<string, object> param = new Dictionary<string, object>(1);
  18. param.Add("@GlobalDateFormat", CommandHandler.GlobalDateFormat);
  19. s = Common.CommonScalar.GetString(commonConnection, Resources.ListSegments, param);
  20. }
  21. return s;
  22. }
  23. internal static string SegmentsInnerXml(DbConnection commonConnection)
  24. {
  25. string s = null;
  26. if(commonConnection.State == ConnectionState.Open)
  27. {
  28. Dictionary<string, object> param = new Dictionary<string, object>(1);
  29. param.Add("@GlobalDateFormat", CommandHandler.GlobalDateFormat);
  30. s = Common.CommonScalar.GetString(commonConnection, Resources.ListSegmentsInnerXml, param);
  31. }
  32. return s;
  33. }
  34. }
  35. }