Skip to content

Instantly share code, notes, and snippets.

@IntegerMan
Created November 6, 2019 00:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IntegerMan/32110d5ab61cb0fc409c7997c87128e3 to your computer and use it in GitHub Desktop.
Save IntegerMan/32110d5ab61cb0fc409c7997c87128e3 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
namespace MattEland.TestManager.Models
{
[Display(Name = "Test Suite")]
public class TestSuite
{
[Key]
public int Id { get; set; }
[Required]
public string Name { get; set; }
public string Description { get; set; }
[HiddenInput(DisplayValue = true)]
[Display(Name = "Created")]
public DateTime DateCreatedUtc { get; set; } = DateTime.UtcNow;
[HiddenInput(DisplayValue = true)]
[Display(Name = "Last Modified")]
public DateTime DateModifiedUtc { get; set; } = DateTime.UtcNow;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment