using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Data;

namespace VA.Modules.JDingMember.Interface.MemberConsume.ClassLibrary.Config
{
    public class DBConfig
    {
        static string _ConnectionString;
        public static string ConnectionString
        {
            get
            {
                if (_ConnectionString == null)
                {
                    _ConnectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
                }

                return _ConnectionString;
            }
        }

        /// <summary>
        /// 表前缀；
        /// </summary>
        public static string Tb_Prefix
        {
            get { return "va_"; }
        }

        /// <summary>
        /// 视图前缀；
        /// </summary>
        public static string View_Prefix
        {
            get { return "va_"; }
        }

        /// <summary>
        /// 函数前缀；
        /// </summary>
        public static string Function_Prefix
        {
            get { return "va_"; }
        }

        /// <summary>
        /// 存储过程前缀；
        /// </summary>
        public static string Sp_Prefix
        {
            get { return "va_"; }
        }
    }
}
