本帖最后由 jsz44 于 2010-12-09 17:33:41 编辑

解决方案 »

  1.   

    getdate()函数应该有在Linq中映射才对,你找下,所有SQLSERVER的函数都可以映射到Linq的实体类中的。
      

  2.   

      [Function(Name = "GetDate", IsComposable = true)]
            public DateTime GetDate()
            {
                MethodInfo mi = MethodBase.GetCurrentMethod() as MethodInfo;
                return (DateTime)this.ExecuteMethodCall(this, mi, new object[] { }).ReturnValue;        }        [Function(Name = "Reverse", IsComposable = true)]
            public string Reverse(string str)
            {
                MethodInfo mi = MethodBase.GetCurrentMethod() as MethodInfo;
                return (string)this.ExecuteMethodCall(this, mi,
                new object[] { str }).ReturnValue;
            } 使用这方法解决了。
      

  3.   

    在服务器上建个视图 Systime
    select getdate() as Now
    拉到DataContext中 将以方法形式出现
    访问时:DataContext.Systime.First().Now