8
Thực thể Khung Mã Ngày tạo trường Ngày đầu tiên
Tôi đang sử dụng phương pháp Entity Framework Code First để tạo bảng cơ sở dữ liệu của mình. Đoạn mã sau tạo một DATETIMEcột trong cơ sở dữ liệu, nhưng tôi muốn tạo một DATEcột. [DataType(DataType.Date)] [DisplayFormatAttribute(ApplyFormatInEditMode = true, DataFormatString = "{0:d}")] public DateTime ReportDate { get; set; } …