using System.Data;
using System.Data.SqlClient;
using System.Collections;
using System.Globalization;
using System;
using Club.Framework.Data;
using System.Configuration;
namespace Macrow.Components
{
/// <summary>
/// <para><see cref="member"/></para>
/// <res></res>
/// </summary>
public class StoreClassES
{
public StoreClassES()
{
//
// TODO: 在此处添加构造函数逻辑
//
} public bool Delete_More(string ids, string tableName)
{
SqlParameter[] prams = {
SqlHelper.MakeInParam("@ids",SqlDbType.NVarChar,200,ids),
SqlHelper.MakeInParam("@TableName",SqlDbType.NVarChar,50,tableName)
};
return NonQueryBool("dbo.Delete_More",prams);
}
}}using System;
using System.Data;
using Macrow.Components;
namespace tests.Components
{
/// <summary>
/// tsst 的摘要说明。
/// </summary>
public class tsst
{
StoreClassES MyClass = new StoreClassES();
public static ADInfo Select_AD(Int32 ID)
{
MyClass.Delete_More("12","News");
}
}
}
出错提示C:\Inetpub\wwwroot\tests\Components\tsst.cs(24): “tests.Components.tsst.MyClass”表示“字段”,此处应为“类”---这是什么原因啊???
using System.Data.SqlClient;
using System.Collections;
using System.Globalization;
using System;
using Club.Framework.Data;
using System.Configuration;
namespace Macrow.Components
{
/// <summary>
/// <para><see cref="member"/></para>
/// <res></res>
/// </summary>
public class StoreClassES
{
public StoreClassES()
{
//
// TODO: 在此处添加构造函数逻辑
//
} public bool Delete_More(string ids, string tableName)
{
SqlParameter[] prams = {
SqlHelper.MakeInParam("@ids",SqlDbType.NVarChar,200,ids),
SqlHelper.MakeInParam("@TableName",SqlDbType.NVarChar,50,tableName)
};
return NonQueryBool("dbo.Delete_More",prams);
}
}}using System;
using System.Data;
using Macrow.Components;
namespace tests.Components
{
/// <summary>
/// tsst 的摘要说明。
/// </summary>
public class tsst
{
StoreClassES MyClass = new StoreClassES();
public static ADInfo Select_AD(Int32 ID)
{
MyClass.Delete_More("12","News");
}
}
}
出错提示C:\Inetpub\wwwroot\tests\Components\tsst.cs(24): “tests.Components.tsst.MyClass”表示“字段”,此处应为“类”---这是什么原因啊???
解决方案 »
- 如何模拟外网登录 然后post数据
- 向高手请教:如何用linq to sql 创建数据库和表
- 正则表达式问题
- ===========100分========郁闷关与一getDate()时间的比较?
- 郁闷啊,css样式怎么会在aspx文件中失效呢, 用VS打开就不行,DW就可以正常显示
- 我就不明白了,GOOGLE怎么就那么大本事呢???
- 有谁下载过这个好东西?
- “/”应用程序中的服务器错误。 麻烦老大给看看怎么回事,我是菜鸟,给解释详细点,谢谢
- 如何屏蔽象f11/f1/f3/f5这些键?
- 为什么我的Session那么快就过期?!!
- 需要在前台datalist里面写个IF语句?
- 怎样将新闻点击率最高的标题后面加上hot!?我用datagrid显示的,求详细答复
没有为new构造
=========================================
public ADInfo Select_AD(Int32 ID)