none
Code-First Fluent API AND Date Mapping RRS feed

  • Question

  • I have a POCO class:

    public class Foo
    {
       public DateTime Appointment
       {
           get;
           set;
       }
    }

    I use HasColumnType("date"), but when it creates the column in the database, it is still created as a DateTime column.

    What am I missing? Does it matter that the property is part of a composit Primary Key?

    I'm using EF 4.3 because that is what NuGet is giving me.
    Wednesday, February 29, 2012 8:17 AM

Answers