36 references to ApplicationIntent
System.Data (36)
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (23)
457
throw ADP.InvalidEnumerationValue(typeof(
ApplicationIntent
), (int)eValue);
466
internal static bool TryConvertToApplicationIntent(string value, out
ApplicationIntent
result)
468
Debug.Assert(Enum.GetNames(typeof(
ApplicationIntent
)).Length == 2, "ApplicationIntent enum has changed, update needed");
473
result =
ApplicationIntent
.ReadOnly;
478
result =
ApplicationIntent
.ReadWrite;
488
internal static bool IsValidApplicationIntentValue(
ApplicationIntent
value)
490
Debug.Assert(Enum.GetNames(typeof(
ApplicationIntent
)).Length == 2, "ApplicationIntent enum has changed, update needed");
491
return value ==
ApplicationIntent
.ReadOnly || value ==
ApplicationIntent
.ReadWrite;
494
internal static string ApplicationIntentToString(
ApplicationIntent
value)
497
if (value ==
ApplicationIntent
.ReadOnly)
517
internal static
ApplicationIntent
ConvertToApplicationIntent(string keyword, object value)
521
ApplicationIntent
result;
546
ApplicationIntent
eValue;
548
if (value is
ApplicationIntent
)
551
eValue = (
ApplicationIntent
)value;
558
throw ADP.ConvertFailed(value.GetType(), typeof(
ApplicationIntent
), null);
565
eValue = (
ApplicationIntent
)Enum.ToObject(typeof(
ApplicationIntent
), value);
571
throw ADP.ConvertFailed(value.GetType(), typeof(
ApplicationIntent
), e);
582
throw ADP.InvalidEnumerationValue(typeof(
ApplicationIntent
), (int)eValue);
864
internal const
ApplicationIntent
ApplicationIntent = System.Data.SqlClient.
ApplicationIntent
.ReadWrite;
fx\src\data\System\Data\SqlClient\SqlConnectionString.cs (4)
29
internal const
ApplicationIntent
ApplicationIntent = DbConnectionStringDefaults.ApplicationIntent;
222
private readonly
ApplicationIntent
_applicationIntent;
571
internal
ApplicationIntent
ApplicationIntent { get { return _applicationIntent; } }
782
internal System.Data.SqlClient.
ApplicationIntent
ConvertValueToApplicationIntent() {
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (5)
93
private
ApplicationIntent
_applicationIntent = DbConnectionStringDefaults.ApplicationIntent;
323
public
ApplicationIntent
ApplicationIntent {
327
throw ADP.InvalidEnumerationValue(typeof(
ApplicationIntent
), (int)value);
919
private static
ApplicationIntent
ConvertToApplicationIntent(string keyword, object value) {
1181
private void SetApplicationIntentValue(
ApplicationIntent
value) {
fx\src\data\System\Data\SqlClient\SqlInternalConnectionTds.cs (4)
1309
login.readOnlyIntent = ConnectionOptions.ApplicationIntent ==
ApplicationIntent
.ReadOnly;
1351
if (ConnectionOptions.ApplicationIntent ==
ApplicationIntent
.ReadOnly) {
1416
if (ConnectionOptions.ApplicationIntent ==
ApplicationIntent
.ReadOnly) {
1626
Debug.Assert(ConnectionOptions.ApplicationIntent !=
ApplicationIntent
.ReadOnly, "FAILOVER+AppIntent=RO: Should already fail (at LOGSHIPNODE in OnEnvChange)");