public static qHtl_DailyPhysicalActivity GetPhysicalActivityRecord(int user_id, DateTime day)
        {
            qHtl_DailyPhysicalActivity record = new qHtl_DailyPhysicalActivity();

            record.container.Select(new DbQuery
            {
                Where = string.Format("MarkAsDelete = 0 AND UserID = {0} AND ActivityDate = '{1}'", user_id, day.Date)
            });

            if (record.DailyPhysicalActivityID > 0)
            {
                return(record);
            }
            else
            {
                return(null);
            }
        }
        public static qHtl_DailyPhysicalActivity GetPhysicalActivityRecord(int user_id, DateTime day)
        {
            qHtl_DailyPhysicalActivity record = new qHtl_DailyPhysicalActivity();

            record.container.Select(new DbQuery
            {
                Where = string.Format("MarkAsDelete = 0 AND UserID = {0} AND ActivityDate = '{1}'", user_id, day.Date)
            });

            if (record.DailyPhysicalActivityID > 0) return record;
            else return null;
        }