Entity Framework 4 - Code Only - How to set data type property as smalldatetime?

Posted by user340381 on Stack Overflow See other posts from Stack Overflow or by user340381
Published on 2010-05-13T14:43:09Z Indexed on 2010/05/13 14:44 UTC
Read the original article Hit count: 150

There's a way?

var customer = constructor.Entity<Customer>();
customer.Property(c => c.Date).DataType("smalldatetime");

THANKS IN ADVANCE

© Stack Overflow or respective owner

Related posts about entity-framework-4

Related posts about code-only