Entity Framework 4 - Code Only - How to set data type property as smalldatetime? - by user340381 There's a way? var customer = constructor.Entity<Customer>(); customer.Property(c => c.Date).DataType("smalldatetime"); THANKS IN ADVANCE Read the article