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(""); } }
public static int ToDBServerTypeInt(this eDBServerType pDBServerType) { return(Convert.ToInt32(pDBServerType)); }
public static string ToDBServerTypeString(this eDBServerType pDBServerType) { return(pDBServerType.ToDBServerTypeInt().ToString(CultureInfo.InvariantCulture)); }