使用ExecuteScalar()执行的结果可以作为repeater的数据源吗

解决方案 »

  1.   

     public static string GetContentByTime()
            {
                return Convert.ToString(new Select(UbacklogTable.UbacklogContentColumn).From(UbacklogTable.Schema).Where(UbacklogTable.UbacklogIsCallColumn).IsEqualTo("站内").IsEqualTo(DateTime.Now).ExecuteScalar());
            }总是不返回结果
      

  2.   

    DataSource 可以是任何 System.Collections.IEnumerable 对象
    http://msdn.microsoft.com/zh-cn/library/system.collections.ienumerable(v=VS.90).aspx