System.Data.Common.DbConnectionStringBuilderUtil.IsValidPoolBlockingPeriodValue(System.Data.SqlClient.PoolBlockingPeriod)

Here are the examples of the csharp api class System.Data.Common.DbConnectionStringBuilderUtil.IsValidPoolBlockingPeriodValue(System.Data.SqlClient.PoolBlockingPeriod) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

View license
internal static string PoolBlockingPeriodToString(PoolBlockingPeriod value)
        {
            Debug.Assert(IsValidPoolBlockingPeriodValue(value));
            
            if (value == PoolBlockingPeriod.AlwaysBlock)
            {
                return PoolBlockingPeriodAlwaysBlockString;
            }
            if (value == PoolBlockingPeriod.NeverBlock)
            {
                return PoolBlockingPeriodNeverBlockString;
            }
            else
            {
                return PoolBlockingPeriodAutoString;
            }
        }

2. Example

View license
internal static PoolBlockingPeriod ConvertToPoolBlockingPeriod(string keyword, object value)
       /n ..... /n //View Source file for more details /n }