Data annotations reverse-engineered dbcontext

using Microsoft.AspNetCore.Mvc;
using System;
using System.ComponentModel.DataAnnotations;

namespace projectnaam.Data
{
    [ModelMetadataType(typeof(OnderwerpenMetaData))]
    public partial class Onderwerpen
    {
    }
    public class OnderwerpenMetaData
    {
        [DisplayFormat(DataFormatString = "{0:dd/MM/yyyy}")]
        public DateTime Datum { get; set; }
    }
}

 

Categories: ,

Related Article