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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:07:08+00:00 2026-06-06T22:07:08+00:00

I have created an EDMX in visual studio 2010 SP1. It has been built

  • 0

I have created an EDMX in visual studio 2010 SP1. It has been built from an existing database.

There are a number of database generated columns (ie, non nullable with GETDATE() as the default value).

The EDMX though does not seem to detect these columns and isn’t setting “StoreGeneratedPattern” to “Computed”. I am going to have to set these manually for the thing to work!

The database is very large so this is not ideal.

Is this a bug with the EDMX generation or am I likely to be doing something wrong?

Many thanks
Carl

  • 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-06T22:07:10+00:00Added an answer on June 6, 2026 at 10:07 pm

    It is not bug. It simply works this way because default constraint setting column to current date is not computed column. Computed column change its value every time you save a record – example is timestamp. Moreover properties using StoreGeneratedPattern set to Identity or Computed cannot be set from your application. Your column accepts other value so EF cannot make it store generated by default – it is up to you to make the decision.

    If you want to use default value from database for all records set the StoreGeneratedPattern to Identity. It will ensure that the value is set and queried during insert. Setting the pattern to Computed will create unnecessary query after each update.

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

Sidebar

Related Questions

I created some tables in an .edmx file and have been generating the database
Set up: New MVC 3 project, using existing database. Created an EF file (edmx),
I have this EF database-first EDMX file that I created it with a local
I have created 3 classes as following Ext.mine.TextParent - Inherting from Textfield Ext.mine.child.TextChildA -
I'm using Entity Framework in Visual Studio 2010 Beta 2 (.NET framework 4.0 Beta
I created an empty Visual Studio solution and added two projects: Backend(Class Library type)
I have created a C#/MVVM project which runs fine when I run it from
Does Visual Studio 2008 SP1 / .NET 3.5 support Linq to Entities (ADO.NET Entity
I'm working on an MVC3 project I have created my database on SQL server
I have created the POCO class and it's equivalent in edmx file (Category entity

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.