I have to update many procs and function in edmx, and I don't want update 1 by 1 in Model browser and also don't want to re-create edmx , So is there any possible solution there, i can update multiple proc or function in edmx file in one go.
Is that possible to update multiple procedure and function definition in EDMX file C# DB first approach
95 views Asked by Kishan Choudhary At
1
There are 1 answers
Related Questions in C#
- Add additional fields to Linq group by
- couldn't copy pdb file to another directory while consuming wcf web service
- Why are the aliases for string and object in lowercase?
- WPF MessageBox Cancel checkbox check
- Resolve object using DI container with object instance
- Creating a parametrized field name for a SELECT clause
- Does compiler optimize operation on const variable and literal const number?
- Get data from one form to another form in C#
- Writing/Overwriting to specific XML file from ASP.NET code behind
- Deleting Orphans with Fluent NHibernate
Related Questions in VISUAL-STUDIO
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- Exception thrown at 0x0131EB06 Visual Studio
- Visual Studio 2015 Cordova Plugin Add Fail
- Cannot find InvalidCastException in C# Application
- generating C# code file during Visual Studio build
- Can I deploy multiple instances of my application on the same windows phone?
- Close the Solution Explorer window
- How to generate entity framework code-first migrations without using the package manager console?
- Implementing callback function for dialog-based application
- VB.net: How to make original variable value fulfill 2 statements?
Related Questions in EDMX
- Dynamically load asp.net Content from database
- The difference between EF6 and EF4.1 in files hierarchy
- Unknown Exception During Build
- EF6 Call stored procedure with parameters
- LINQ takes 40s to end query - Performance
- SQL Server and performance for dynamic searches
- Now I'm using EF 6 database first and i need to add new table
- Can I generate a .sql update script from an edmx file?
- Entity Framework TT template -> Navigation Property name based on foreign key ID
- singularize table name when create EDMX file
Related Questions in DB-FIRST
- Pomelo Entity Framework Core Scaffolding fails for MySQL DB "annotation cannot be added because an annotation with the same name already exists."
- Is that possible to update multiple procedure and function definition in EDMX file C# DB first approach
- C#; EF database first mode
- What is the behavior of entity framework when a table does not exist yet for an entity?
- Entity Framework DB First: How to make a field optional
- How to refactor web.config in an ASP.NET MVC4 Web App with EF5 and Database First approach?
- ef core how to get data from different tables with foreign keys at once? (DB first)
- How to mapping enum in postgresql (db first) with ef core on .net core
- Concurrency control with Entityframework DBFirst
- EF code first using specific project on solution with ignoring migrations
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can refer to the following to the followings to update multiple proc or function in one go.
First, please right click the edmx file and choose the
update model from database.Second, If you want to add the new procedures, you can click Add and choose the correspond stored procedure.
If you want to update the existed procedure, you can click Refresh and choose the stored procedure.
Third, you can see the correspond method in the dbcontext.cs file.
public virtual ObjectResult<TestProcedure_Result> TestProcedure(Nullable age) { var ageParameter = age.HasValue ? new ObjectParameter("age", age) : new ObjectParameter("age", typeof(int));
Finally, you can use the following code to get the result by using the stored procedure.