当前位置: 首页>>代码示例>>C#>>正文


C# SqlInt32.ToString方法代码示例

本文整理汇总了C#中System.Data.SqlTypes.SqlInt32.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# SqlInt32.ToString方法的具体用法?C# SqlInt32.ToString怎么用?C# SqlInt32.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Data.SqlTypes.SqlInt32的用法示例。


在下文中一共展示了SqlInt32.ToString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: validateResultSetNumber

 private void validateResultSetNumber(SqlInt32 resultsetNo)
 {
     if (resultsetNo < 0 || resultsetNo.IsNull)
     {
         throw new InvalidResultSetException("ResultSet index begins at 1. ResultSet index [" + resultsetNo.ToString() + "] is invalid.");
     }
 }
开发者ID:DFineNormal,项目名称:tSQLt,代码行数:7,代码来源:ResultSetFilter.cs

示例2: sendSelectedResultSetToSqlContext

        public void sendSelectedResultSetToSqlContext(SqlInt32 resultsetNo, SqlString command)
        {
            validateResultSetNumber(resultsetNo);

            SqlDataReader dataReader = testDatabaseFacade.executeCommand(command);

            int ResultsetCount = 0;
            if (dataReader.FieldCount > 0)
            {
                do
                {
                    ResultsetCount++;
                    if (ResultsetCount == resultsetNo)
                    {
                        sendResultsetRecords(dataReader);
                        break;
                    }
                } while (dataReader.NextResult());
            }
            dataReader.Close();

            if(ResultsetCount < resultsetNo)
            {
                throw new InvalidResultSetException("Execution returned only " + ResultsetCount.ToString() + " ResultSets. ResultSet [" + resultsetNo.ToString() + "] does not exist.");
            }
        }
开发者ID:DFineNormal,项目名称:tSQLt,代码行数:26,代码来源:ResultSetFilter.cs

示例3: GetSkyline

 public static void GetSkyline(SqlString strQuery, SqlString strOperators, SqlInt32 numberOfRecords, SqlInt32 sortType, SqlInt32 upToLevel)
 {
     SPMultipleSkylineBNLLevel skyline = new SPMultipleSkylineBNLLevel();
     string[] additionalParameters = new string[5];
     additionalParameters[4] = upToLevel.ToString();
     skyline.GetSkylineTable(strQuery.ToString(), strOperators.ToString(), numberOfRecords.Value, false, Helper.CnnStringSqlclr, Helper.ProviderClr, additionalParameters, sortType.Value, true);
 }
开发者ID:Bulld0zzer,项目名称:prefSQL,代码行数:7,代码来源:SPMultipleSkylineBNLLevel.cs

示例4: SaveToFolderByZoomXY

    public static SqlBoolean SaveToFolderByZoomXY(SqlBinary image, SqlString rootFolderPath, SqlInt32 Zoom, SqlInt32 X, SqlInt32 Y)
    {
        SqlBoolean result = false;
        using (MemoryStream ms = new MemoryStream())
        {
            ms.Write(image.Value, 0, image.Length);
            SetBeginPosition(ms);

            using (Icon2TileRendering bitmap = new Icon2TileRendering(ms))
            {
                bitmap.SaveToPngFile((string)rootFolderPath, Zoom.ToString(), X.ToString(), Y.ToString());
                result = true;
            }
        }
        // Put your code here
        return result;
    }
开发者ID:MoonDav,项目名称:TileRendering,代码行数:17,代码来源:ShapeTile.cs

示例5: CollectNucsFromNeighborhoodOfRefSeqPos

    public static SqlString CollectNucsFromNeighborhoodOfRefSeqPos(SqlInt32 pupID, SqlInt64 pos, SqlInt32 posRadius)
    {
        using (SqlConnection conn = new SqlConnection("context connection=true"))
        {
            string beginOfSelection = "SELECT refNuc FROM [dbo].[coverageEnc]"
                + "WHERE [pupID] = " + pupID.ToString();
            conn.Open();
            SqlCommand cmd = new SqlCommand();
            cmd.Connection = conn;
            long centerRefPos = pos.Value;
            int radius = posRadius.Value;
            string posList = "";
            for (long i = centerRefPos - radius; i <= centerRefPos + radius; i++)
            {
                posList += i.ToString() + ",";
            }
            // The last comma is ignored:
            posList = posList.Substring(0, posList.Length - 1);
            long actualRefPos = pos.Value - posRadius.Value;
            cmd.CommandText = beginOfSelection + "AND [pos] in (" + posList + ")";

            string result = "";
            using (SqlDataReader reader = cmd.ExecuteReader())
            {
                while (reader.Read())
                {
                    string actualRefNuc = reader.GetString(0);
                    result += actualRefNuc;
                }
            }

            if (result.Length != 2 * posRadius + 1)
            {
                result = HandleMissingPos(conn, beginOfSelection, centerRefPos, radius, result);
            }

            return new SqlString(result);
        }
    }
开发者ID:szalaigj,项目名称:LoaderToolkit,代码行数:39,代码来源:CollectNucsFromNeighborhoodOfRefSeqPos.cs

示例6: ToString

 /// <summary>
 /// Converts the value of the specified SqlInt32 to its equivalent String representation.
 /// </summary>
 /// <param name="value">An SqlInt32.</param>
 /// <returns>The String equivalent of the SqlInt32.</returns>        
 public static String ToString(SqlInt32 value) { return value.ToString(); }
开发者ID:mstaessen,项目名称:fluorinefx,代码行数:6,代码来源:Convert.cs

示例7: ToString

		/// <summary>Converts the value from <c>SqlInt32</c> to an equivalent <c>String</c> value.</summary>
		public static String ToString(SqlInt32        p) { return p.ToString();                                                                                          }
开发者ID:titolarz,项目名称:bltoolkit,代码行数:2,代码来源:Convert.generated.cs


注:本文中的System.Data.SqlTypes.SqlInt32.ToString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。