ToClrName() public static method

public static ToClrName ( string name ) : string
name string
return string
コード例 #1
0
ファイル: ParameterMetadata`1.cs プロジェクト: chucker/Chain
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterMetadata{TDbType}" /> class.
 /// </summary>
 /// <param name="sqlParameterName">Name of the SQL parameter.</param>
 /// <param name="sqlVariableName">Name of the SQL variable.</param>
 /// <param name="typeName">Name of the type.</param>
 /// <param name="dbType">Type of the database.</param>
 public ParameterMetadata(string sqlParameterName, string sqlVariableName, string typeName, TDbType?dbType)
 {
     TypeName         = typeName;
     SqlParameterName = sqlParameterName;
     ClrName          = Utilities.ToClrName(sqlParameterName);
     SqlVariableName  = sqlVariableName;
     DbType           = dbType;
     base.DbType      = dbType;
 }
コード例 #2
0
        /*
         * /// <summary>
         * /// Initializes a new instance of the <see cref="ParameterMetadata{TDbType}" /> class.
         * /// </summary>
         * /// <param name="sqlParameterName">Name of the SQL parameter.</param>
         * /// <param name="sqlVariableName">Name of the SQL variable.</param>
         * /// <param name="typeName">Name of the type as known to the database.</param>
         * /// <param name="dbType">Type of the database column as an enum.</param>
         * protected ParameterMetadata(string sqlParameterName, string sqlVariableName, string typeName, object dbType)
         * {
         *  TypeName = typeName;
         *  SqlParameterName = sqlParameterName;
         *  ClrName = Utilities.ToClrName(sqlParameterName);
         *  SqlVariableName = sqlVariableName;
         *  DbType = dbType;
         * }
         */

        /// <summary>
        /// Initializes a new instance of the <see cref="ParameterMetadata{TDbType}"/> class.
        /// </summary>
        /// <param name="sqlParameterName">Name of the SQL parameter.</param>
        /// <param name="sqlVariableName">Name of the SQL variable.</param>
        /// <param name="typeName">Name of the type as known to the database.</param>
        /// <param name="dbType">Type of the database column as an enum.</param>
        /// <param name="isNullable">if set to <c>true</c> is nullable.</param>
        /// <param name="maxLength">The maximum length.</param>
        /// <param name="precision">The precision.</param>
        /// <param name="scale">The scale.</param>
        /// <param name="fullTypeName">Full name of the type.</param>
        /// <param name="direction">Indicates the direction of the parameter.</param>
        protected ParameterMetadata(string sqlParameterName, string sqlVariableName, string typeName, object?dbType, bool?isNullable, int?maxLength, int?precision, int?scale, string fullTypeName, ParameterDirection direction)
        {
            SqlParameterName = sqlParameterName;
            SqlVariableName  = sqlVariableName;
            TypeName         = typeName;
            ClrName          = Utilities.ToClrName(sqlParameterName);
            DbType           = dbType;
            IsNullable       = isNullable;
            MaxLength        = maxLength;
            Precision        = precision;
            Scale            = scale;
            FullTypeName     = fullTypeName;
            Direction        = direction;
        }
コード例 #3
0
ファイル: ParameterMetadata`1.cs プロジェクト: chucker/Chain
 /// <summary>
 /// Initializes a new instance of the <see cref="ParameterMetadata{TDbType}"/> class.
 /// </summary>
 /// <param name="sqlParameterName">Name of the SQL parameter.</param>
 /// <param name="sqlVariableName">Name of the SQL variable.</param>
 /// <param name="typeName">Name of the type.</param>
 /// <param name="dbType">Type of the database.</param>
 /// <param name="isNullable">if set to <c>true</c> [is nullable].</param>
 /// <param name="maxLength">The maximum length.</param>
 /// <param name="precision">The precision.</param>
 /// <param name="scale">The scale.</param>
 /// <param name="fullTypeName">Full name of the type.</param>
 public ParameterMetadata(string sqlParameterName, string sqlVariableName, string typeName, TDbType?dbType, bool?isNullable, int?maxLength, int?precision, int?scale, string fullTypeName)
 {
     SqlParameterName = sqlParameterName;
     SqlVariableName  = sqlVariableName;
     TypeName         = typeName;
     ClrName          = Utilities.ToClrName(sqlParameterName);
     DbType           = dbType;
     base.DbType      = dbType;
     IsNullable       = isNullable;
     MaxLength        = maxLength;
     Precision        = precision;
     Scale            = scale;
     FullTypeName     = fullTypeName;
 }