Try to use ColumnAttribute
from System.ComponentModel.DataAnnotations
(defined in EntityFramework.dll):
[Column(TypeName="Date")]
public DateTime ReportDate { get; set; }
More Related Contents:
- Entity Framework Code First – two Foreign Keys from same table
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details [duplicate]
- Ignoring a class property in Entity Framework 4.1 Code First
- Entity Framework Join 3 Tables
- Why use ICollection and not IEnumerable or List on many-many/one-many relationships?
- Why is .Contains slow? Most efficient way to get multiple entities by primary key?
- Validation failed for one or more entities while saving changes to SQL Server Database using Entity Framework
- Entity Framework DateTime and UTC
- Does Entity Framework Code First support stored procedures?
- Why is inserting entities in EF 4.1 so slow compared to ObjectContext?
- EF Code First: How to get random rows
- Fluent API, many-to-many in Entity Framework Core
- Can you create sql views / stored procedure using Entity Framework 4.1 Code first approach
- Understanding ForeignKey attribute in entity framework code first
- Navigation Property without Declaring Foreign Key
- Better way to query a page of data and get total count in entity framework 4.1?
- Self-referencing many-to-many recursive relationship code first Entity Framework
- EF4 Code First: how to add a relationship without adding a navigation property
- An error occurred while saving entities that do not expose foreign key properties for their relationships
- Can you get the DbContext from a DbSet?
- mapping multiple tables to a single entity class in entity framework
- Change foreign key constraint naming convention
- Create association on non-primary key fields with Entity Framework 4.1 Fluent API
- How to remove child one to many related records in EF code first database?
- ‘Contains()’ workaround using Linq to Entities?
- Is it possible to capture a 0..1 to 0..1 relationship in Entity Framework?
- No connection string named ‘MyEntities’ could be found in the application config file
- Mapping composite keys using EF code first
- The LINQ expression could not be translated and will be evaluated locally
- Entity Framework – how do I get the columns?