コード例 #1
0
        public static string GetDbServerTypeName(this eDBServerType eDBServerType)
        {
            switch (eDBServerType)
            {
            case eDBServerType.SqlServer2005:
                return("MS Sql Server 2005");

            case eDBServerType.SqlServer2008:
                return("MS Sql Server 2008");

            case eDBServerType.SqlServer2012:
                return("MS Sql Server 2012");

            default:
                return("");
            }
        }
コード例 #2
0
 public static int ToDBServerTypeInt(this eDBServerType pDBServerType)
 {
     return(Convert.ToInt32(pDBServerType));
 }
コード例 #3
0
 public static string ToDBServerTypeString(this eDBServerType pDBServerType)
 {
     return(pDBServerType.ToDBServerTypeInt().ToString(CultureInfo.InvariantCulture));
 }