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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:34:30+00:00 2026-06-11T20:34:30+00:00

The Reverse Engineer Code First functionality of Entity Framework Power Tools, Beta 2 is

  • 0

The “Reverse Engineer Code First” functionality of Entity Framework Power Tools, Beta 2 is very good and I am working on customising the Reverse Engineer Templates.

In Entity.tt, take a look at the following line (line breaks introduced):

<#= Accessibility.ForProperty(property) #> 
<#= code.Escape(property.TypeUsage) #> 
<#= code.Escape(property) #> 
{ get; set; }

For a database column named “SomeDate” of type datetime, you will have the following code outputted:

public Nullable<System.DateTime> SomeDate { get; set; }

How can I modify the Entity.tt code to produce this instead:

public DateTime? SomeDate { get; set; }

Thank you,

R.

  • 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-11T20:34:32+00:00Added an answer on June 11, 2026 at 8:34 pm

    As podiluska mentioned, you need to edit EF.Utility.CS.ttinclude (you can see that this is imported by Entity.tt if you follow the “Customize Reverse Engineer Templates” instructions here)

    On my machine it is here:

    C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes

    Around line 127, replace

    return String.Format(CultureInfo.InvariantCulture, "Nullable<{0}>", typeName);
    

    With

    return String.Format(CultureInfo.InvariantCulture, "{0}?", typeName);
    

    Make sure you test this. It worked fine for me, but I can’t guarantee that it will work for all nullable types. Any comments would be appreciated and I will edit this post as appropriate

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

Sidebar

Related Questions

I am trying to reverse engineer a c code, but this part of assembly
First time using PyUSB, trying to reverse engineer an eye-toy (Play Station) for OS
So im trying to use Hibernate Tools to reverse engineer my database and I
There are several tools that can easily reverse engineer the app and shows all
I am attempting to reverse engineer an LZ1/LZ77 decompression algorithm. The length of an
I'm trying to reverse engineer how facebook handles their notifications, where when you get
When I reverse engineer from a Progress 9.1e database I get the following error
What techniques could I use to make my jar file Reverse Engineer proof?
I'm learning assembly, motivation being able to reverse engineer . I'm trying to find
I wish to reverse engineer any web-page into a logical representation of the page.

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.