forked from EnterpriseLibrary/data-access-application-block
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move types n OracleConfigurationExtension.cs to their own file
- Loading branch information
Showing
3 changed files
with
57 additions
and
42 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
source/Src/Data.Oracle/Configuration/Fluent/IDatabaseOracleConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. | ||
|
||
using Oracle.ManagedDataAccess.Client; | ||
using Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent; | ||
|
||
namespace Microsoft.Practices.EnterpriseLibrary.Data.Oracle.Configuration.Fluent | ||
{ | ||
/// <summary> | ||
/// Oracle configuration options | ||
/// </summary> | ||
public interface IDatabaseOracleConfiguration : IDatabaseConfigurationProperties | ||
{ | ||
/// <summary> | ||
/// Define an Oracle connection with a connection string. | ||
/// </summary> | ||
/// <param name="connectionString"></param> | ||
/// <returns></returns> | ||
IDatabaseOracleConfiguration WithConnectionString(string connectionString); | ||
|
||
/// <summary> | ||
/// Define an Oracle connection with the <see cref="OracleConnectionStringBuilder"/> | ||
/// </summary> | ||
/// <param name="builder"></param> | ||
/// <returns></returns> | ||
#pragma warning disable 612, 618 | ||
IDatabaseOracleConfiguration WithConnectionString(OracleConnectionStringBuilder builder); | ||
#pragma warning restore 612, 618 | ||
|
||
/// <summary> | ||
/// Define an Oracle package with the specified name. | ||
/// </summary> | ||
/// <param name="name"></param> | ||
/// <returns></returns> | ||
IDatabaseOraclePackageConfiguration WithPackageNamed(string name); | ||
|
||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
source/Src/Data.Oracle/Configuration/Fluent/IDatabaseOraclePackageConfiguration.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. See License.txt in the project root for license information. | ||
|
||
using Microsoft.Practices.EnterpriseLibrary.Common; | ||
using Microsoft.Practices.EnterpriseLibrary.Data.Configuration.Fluent; | ||
|
||
namespace Microsoft.Practices.EnterpriseLibrary.Data.Oracle.Configuration.Fluent | ||
{ | ||
/// <summary> | ||
/// Oracle package configuration options. | ||
/// </summary> | ||
public interface IDatabaseOraclePackageConfiguration : IFluentInterface | ||
{ | ||
/// <summary> | ||
/// Define the prefix for the Oracle package. | ||
/// </summary> | ||
/// <param name="prefix"></param> | ||
/// <returns></returns> | ||
IDatabaseConfigurationProperties AndPrefix(string prefix); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters