Hi
In Sql i have Bit DataType.
In Class i have written like below :-
[Display(Name = "Active")]
public bool IsActive { get; set; }
while (rdr.Read())
{
objLocation.Add(new Location
{
Id = rdr["Id"].ToString(),
Description = rdr["Description"].ToString(),
IsActive = rdr["IsActive"].ToString(),
});
}
Thanks

Rajanikant HawaldarPosted Jun 5, 2021, 7:49 AM