linq - C# functions in LinqToSql request -


i have 1 problem. need use c# function in linq sql request. example:

      void request()       {              var db = new dataclasses1(connectionstring);             var result =                  in db.stats                 function(a.sourcename)                 select a;         }         bool function(string sourcename)         {              return true;         } 

this dont work because boolean function(string sourcename) cant change sql request. need use c# functions in linq sql?

you need add asenumerable linq query:

  void request()   {          var db = new dataclasses1(connectionstring);         var result =              in db.stats.asenumerable()             function(a.sourcename)             select a;     }     bool function(string sourcename)     {          return true;     } 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -