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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:56:05+00:00 2026-05-15T16:56:05+00:00

I got a problem with EF 4.0 I creating entity with timestamp column. After

  • 0

I got a problem with EF 4.0
I creating entity with “timestamp” column. After that, I try to generate database.

In SQL script column looks like ‘binary(8)’ instead of timestamp.

How to solve it ?

  • 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-15T16:56:06+00:00Added an answer on May 15, 2026 at 4:56 pm

    the problem solved: EF 4 could’n generate timestamp columns from edmx designer.
    The solution is easy:

    1. Set the type to binary.
    2. Set nullable to false.
    3. Set StoreGeneratedPattern to Computed.
    4. Set ConcurrencyMode to Fixed.
    5. Create a copy of SSDLToSQL10.tt (typically found in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\DBGen). Let’s call it MySSDLToSQL10.tt.
    6. Edit the line (currently 151) that says:

    [<#=Id(prop.Name)#>] <#=prop.ToStoreType()#> <#=WriteIdentity(prop, targetVersion)#> <#=WriteNullable(prop.Nullable)#><#=(p < entitySet.ElementType.Properties.Count – 1) ? “,” : “”#>

    1. Change it to:

    [<#=Id(prop.Name)#>] <#if (string.Compare(prop.Name,”TimeStamp”,true) == 0) { #>timestamp<# } else { #><#=prop.ToStoreType()#><# } #> <#=WriteIdentity(prop, targetVersion)#> <#=WriteNullable(prop.Nullable)#><#=(p < entitySet.ElementType.Properties.Count – 1) ? “,” : “”#>

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

Sidebar

Related Questions

I've got a problem to solve in Jython. The function I've got looks like
So I got a problem that I can't wrap my mind around. I'm creating
I've got a problem with creating a modal search view that emulates the behaviour
I've got a problem here. I'm creating a NSTrackingArea like this: NSTrackingArea *area =
I've got problem with connecting to MySQL database on my freshly installed Windows 7
I've got problem using generics. I'm creating an interface called IProblem , where each
I got a problem. When i'm creating the new project in ASP.NET using VS
Possible Duplicate: Instance as a static class property I got a problem about creating
im creating a slider body but got a problem. I have a next previous
got a problem here. Hope you can help :D The software I'm creating manage

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.