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

  • Home
  • SEARCH
  • 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 6770107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:16:22+00:00 2026-05-26T15:16:22+00:00

MSDN You can define a custom function in the storage model by adding a

  • 0

MSDN

You can define a custom function in the storage model by adding a
Function element that contains a CommandText element to the storage
schema definition language (SSDL) of an .edmx file. A CommandText
element is commonly used to provide functionality similar to that
provided by stored procedures, but the stored procedure is defined in
the .edmx file, not the database.

a) Does custom function simply send native query command ( this command is specified within CommandText element ) to the DB, or does it send a CREATE PROCEDURE command to the DB ( thus stored procedure created in a DB then contains a command specified within CommandText element ), and then in turn calls this DB’s stored procedure?

b) What exactly is meant by “the store procedure is defined in the edmx file, not the database”? Perhaps that edmx file contains a blueprint from which it will create appropriate store procedure in the DB?

Thank you

  • 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-05-26T15:16:23+00:00Added an answer on May 26, 2026 at 3:16 pm

    The phrase “the store procedure is defined in the edmx file, not the database” is proceeded with ‘similar to that provided by stored procedures’

    So if you would create a stored procedure in your database and import it in the CSDL or create a custom function and import it in the CSDL, it won’t make a difference for your CSDL.

    But if you run SQL Profiler you will see that the CommandText is executed als regular Sql, not as a stored procedure.

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

Sidebar

Related Questions

This article on MSDN states that you can use as many try catch blocks
Where can I find the IIS object schema? All I found from MSDN was
Given the following MSDN sample code, why can't I define the Action delegate inline:
I created a custom ToggleButton class, ToggleButtonEx, that extends ToggleButton. ToggleButtonEx contains some dependency
I have search in MSDN and I can't figure where are the POST parameters
In many places in msdn documentation you can find references to App_Data directory. For
Using Visual Studio 2005 As per the title; MSDN and google can't tell me,
MSDN displays the following for CreatePatternBrush: You can delete a pattern brush without affecting
How can I use the ListView_GetBkImage macro: http://msdn.microsoft.com/en-us/library/bb761246(v=VS.85).aspx ... from a C#/WinForms application? I
According this MSDN article HttpApplication .EndRequest can be used to close or dispose of

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.