[StringLength(1)] [Column(TypeName = "char")] public string IsActive { get; set; }
public ActionResult _CreatePartialView() student Student) { if (ModelState.IsValid == true) { branch.IsActive = "Y"; db.Students.Add(Student); db.SaveChanges(); }
public class MyEntity { public MyEntity() { IsActive = "Maybe"; } [StringLength(1)] [Column(TypeName = "char")] public string IsActive { get; set; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)