public WorkItemAccess(IDataReader reader) { Id = DbUtil.GetInt(reader, "access_id"); WorkItemId = DbUtil.GetInt(reader, "item_id"); IsAllowed = DbUtil.GetBool(reader, "is_allowed"); UserId = DbUtil.GetInt(reader, "user_id"); }
public Queue(IDataReader reader) { Id = DbUtil.GetInt(reader, "queue_id"); Name = DbUtil.GetString(reader, "name"); IsNormal = !DbUtil.GetBool(reader, "is_fail"); }