加上_context.Log = LogHelper.In:
public Repository()
{
_context = new TDataContext();
_context.Log = LogHelper.In;
}
打开log.aspx,即可看到之前执行的SQL语句。
加上_context.Log = LogHelper.In:
public Repository()
{
_context = new TDataContext();
_context.Log = LogHelper.In;
}
打开log.aspx,即可看到之前执行的SQL语句。