The name 'Session' does not exist in the current context .try{int flags = Session.DefaultSession.ExecuteNonQuery(sql);count++;}catch (Exception ew) { }

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/26 03:18:42
Thename''Session''doesnotexistinthecurrentcontext.try{intflags=Session.DefaultSession.ExecuteNonQuery(

The name 'Session' does not exist in the current context .try{int flags = Session.DefaultSession.ExecuteNonQuery(sql);count++;}catch (Exception ew) { }
The name 'Session' does not exist in the current context .
try
{
int flags = Session.DefaultSession.ExecuteNonQuery(sql);
count++;
}
catch (Exception ew) { }

The name 'Session' does not exist in the current context .try{int flags = Session.DefaultSession.ExecuteNonQuery(sql);count++;}catch (Exception ew) { }
你这个Session是哪从来的,找到它的定义.