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
Post a Comment