Data/SqlHelper备用.cs
(开头部分) 84KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**********************************************
* 类作用: MSSQL数据库操作辅助类
* 建立人: abaal
* 建立时间: 2008-09-03
* Copyright (C) 2007-2008 abaal
* All rights reserved
* http://blog.csdn.net/abaal888
***********************************************/
//===============================================================================
// Microsoft Data Access Application Block for .NET微软.NET数据访问程序块
// http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp(可在此网页查看)
//
// SQLHelper.cs
//
// This file contains the implementations of the SqlHelper and SqlHelperParameterCache
// classes. 这个文件实现了SqlHelper类和SqlHelperParameterCache类
//其中SqlHelper类执行各种方式的数据操作处理,而SqlHelperParameterCache类则是获得存储过程的参数集合
// For more information see the Data Access Application Block Implementation Overview.
//
//===============================================================================
// Copyright (C) 2000-2001 Microsoft Corporation
// All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
// FITNESS FOR A PARTICULAR PURPOSE.
//==============================================================================
using System;
using System.Data;
using System.Xml;
using System.Data.SqlClient;
using System.Collections;
using System.Configuration;
namespace Svnhost.Data
{
public sealed class SqlHelper
{
public static readonly string conn = ConfigurationManager.ConnectionStrings["db"].ConnectionString;
#region private utility methods & constructors
//Since this class provides only static methods, make the default constructor private to prevent
//instances from being created with "new SqlHelper()".
private SqlHelper() { }
/**/
/// <summary>
/// 这个方法用来将命令对象和一组参数对象联系起来
///
/// This method will assign a value of DbNull to any parameter with a direction of
/// InputOutput and a value of null. 给输出类型参数对象赋空值
///
/// This behavior will prevent default values from being used, but
/// this will be the less common case than an intended pure output parameter (derived as InputOutput)
/// where the user provided no input value.
后面还有 1542 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。