/// <summary> /// Create the ConnectionString Provider /// </summary> /// <param name="ConnectionStringProviderType">ConnectionString Enum Type</param> /// <returns></returns> public static IConnectionStringProvider CreateConnectionStringProvider(ConnectionStringProviderType connectionStringProviderType) { switch (connectionStringProviderType) { case ConnectionStringProviderType.MongoDBConnectionStringProvider: return new MongoDBConnectionStringProvider(); default: return null; } }
/// <summary> /// Create the ConnectionString Provider /// </summary> /// <param name="ConnectionStringProviderType">ConnectionString Enum Type</param> /// <returns></returns> public static IConnectionStringProvider CreateConnectionStringProvider(ConnectionStringProviderType connectionStringProviderType) { switch (connectionStringProviderType) { case ConnectionStringProviderType.MongoDBConnectionStringProvider: return(new MongoDBConnectionStringProvider()); default: return(null); } }