public partial class dbSchedulesRow { /// <summary> /// Gets or Sets the Sunday value of the nDaysOfWeek column. /// </summary> public bool Sunday { get { return ((this.nDayOfWeek & 2) == 2); } set { if (value) { this.nDayOfWeek = (byte)(this.nDayOfWeek | 2); } else { this.nDayOfWeek = (byte)(this.nDayOfWeek & 252); } } } /// <summary> /// Gets or Sets the Monday value of the nDaysOfWeek column. /// </summary> public bool Monday { get { return ((this.nDayOfWeek & 4) == 4); } set { if (value) { this.nDayOfWeek = (byte)(this.nDayOfWeek | 4); } else { this.nDayOfWeek = (byte)(this.nDayOfWeek & 250); } } } }I hope this can help someone else out there looking to do something similar.