/Songhay.Data.GenericWeb/Procedure/List/List.Segments.cs
C# | 37 lines | 32 code | 2 blank | 3 comment | 4 complexity | 949fffd89e19c363fcfb84451e6dc15d MD5 | raw file
- using System.Collections.Generic;
- using System.Data;
- using System.Data.Common;
- using Songhay.Data.GenericWeb.Properties;
-
- namespace Songhay.Data.GenericWeb.Procedure
- {
- /// <summary>
- /// List procedures for Web-schema data.
- /// </summary>
- internal static partial class List
- {
- internal static string Segments(DbConnection commonConnection)
- {
- string s = null;
- if(commonConnection.State == ConnectionState.Open)
- {
- Dictionary<string, object> param = new Dictionary<string, object>(1);
- param.Add("@GlobalDateFormat", CommandHandler.GlobalDateFormat);
- s = Common.CommonScalar.GetString(commonConnection, Resources.ListSegments, param);
- }
- return s;
- }
-
- internal static string SegmentsInnerXml(DbConnection commonConnection)
- {
- string s = null;
- if(commonConnection.State == ConnectionState.Open)
- {
- Dictionary<string, object> param = new Dictionary<string, object>(1);
- param.Add("@GlobalDateFormat", CommandHandler.GlobalDateFormat);
- s = Common.CommonScalar.GetString(commonConnection, Resources.ListSegmentsInnerXml, param);
- }
- return s;
- }
- }
- }