0

I have 'bit' datatype in db. I convert its equivalent datatype to 'bool' in c# when i declare.

protected bool e_Status;

And when I set the property for the above,

public bool Status
{
 get { return e_Status; }
 set { e_Status = value; }
}

Now how do I do the samething for 'varbinary(MAX)' type in db to its equivalent in c#? and how do I set the property for it like above?

3
Contributors
3
Replies
15
Views
4 Years
Discussion Span
Last Post by sukhanya
0

Use a byte array (byte[]) and then work with it using streams (memory, file...).

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.