I have a column named source of type bit in my database. but I want to get set its value in my program. how can I do that? I know it was a simple doubt but I was little bit confused. Do I have to use byte as type while setting this or not?
Share
Use bool for representation bit from database:
If you use SqlDataReader than use reader.GetBoolean(position) for bit type.
If you use any rdbms(like linq to sql), bit will mapped to bool by default.