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 639133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T20:48:32+00:00 2026-05-13T20:48:32+00:00

I do this to save new invoince in my Invoices database table: // insert

  • 0

I do this to save new invoince in my Invoices database table:

                // insert invoice into EDM
                edmx.AddToInvoices(newinvoice);
                // save EDM changes to datastore
                edmx.SaveChanges();

I have a trigger on one of the columns that gets computed dynamically by the database. What is the 1) easiest way to get that value out of the database immediatelly after it changes, 2) What is the fastest way?

Thanks

  • 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-13T20:48:32+00:00Added an answer on May 13, 2026 at 8:48 pm

    You can either call Refresh:

    MyEntities.Refresh(RefreshMode.StoreWins, someEntity);
    

    …or configure the column in SSDL as store-generated if you never set it on the client.

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

Sidebar

Related Questions

I normally save new data to the database like this: $this->MyTable->set(array( 'id' => $id,
Having this code: using (BinaryWriter writer = new BinaryWriter(File.Open(ProjectPath, FileMode.Create))) { //save something here
I have the database just like this ==== Invoices ==== id customer_id description ====
I have the database like this +------------------+ | Invoices | +------------------+ | id |
//Save new category information $('.save_cat').live('click', function() { cat_id = $(this).attr(id).slice(4); cat_name = $(this).parent().prev().prev().children('.cat_name_edit').val(); sort_order
I have a problem, when I try to save new User in database. My
This could save me so much time. Sometimes I find myself writing things like
I save picture from UIImagePicker this way: Save picture in file and then I
I save picture from UIImagePicker this way: Save picture in file and then I
Using this to load the json var jsonParsed = JSON.parse(localStorage.getItem('test')); Using this to save

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.