Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Update Particular Field when Update (EF Code First)

$
0
0

public class Group
    {
        [Key]
        public int id { get; set; }
        [Required]
        [Display(Name = "Group Name")]
        public string GroupName { get; set; }
        public DateTime CreatedOn { get; set; }
        public DateTime? ModifiedOn { get; set; }
    }

CreatedOn  and ModifiedOn will not show in UI

I have Group Class, when add new record (GroupName and CreatedOn) will Insert Value, But

when edit row GroupName and ModifiedOn will update. CreatedOn will no change


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>