Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7983395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:56:42+00:00 2026-06-04T10:56:42+00:00

I wish I could write LINQ to Entity queries that called other functions: from

  • 0

I wish I could write LINQ to Entity queries that called other functions:

from c in context.Widgets
where MyFunc(c.name)
select c

That causes an error because the expression obviously can’t be converted to TSQL that calls MyFunc.

Well, I’m thinking, unless MyFunc was either a user defined function or (I think better yet) a SQL/CLR function.

So is this possible, and moreover is it recommended?

If it’s not possible, is my desire to have this feature valid and possibly going to be addressed by a future of ADO.NET?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:56:43+00:00Added an answer on June 4, 2026 at 10:56 am

    You should create a user-defined function MyFunc in the database and “import” it manually into your context (edmx, so database first), both in the XML and as a stub in a partial class off the context class. The procedure is described here:

    How to use a custom database function (Note that “StorageNamespace” is the namespace that you find in the XML file under <edmx:StorageModels><Schema Namespace=....

    MSDN has a similar description.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When developing & debugging, I sometimes wish I could write a 1-liner that dumped
I find this atrocious: std::numeric_limits<int>::max() And really wish I could just write this: int::max
I'm aware that I could use something called std::vector , but I'm afraid it's
I wish I could throw a ! on a Google search, and turn up
Is there any good practice for this? I wish I could solve the problem
Well, sad to say, but I have 2 questions, which I wish I could've
I wish to send an email from my localhost machine (using PHPs mail function)
I wish to add a singleton method to a particular object. I wish that
I wish to get a list of all strings that are used in a
We wish to make a desktop application that searches a locally packaged text database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.