예제 #1
0
        public static ActivityItem PopulateActivityItemFromIDataReader(IDataReader dr)
        {
            ActivityItem codeActivity = new ActivityItem();

            codeActivity.ActivityID   = DataRecordHelper.GetInt32(dr, "ActivityID");
            codeActivity.ActivityKey  = DataRecordHelper.GetString(dr, "ActivityKey");
            codeActivity.ActivityName = DataRecordHelper.GetString(dr, "ActivityName");
            codeActivity.IsEnabled    = DataRecordHelper.GetBoolean(dr, "IsEnabled", true);
            return(codeActivity);
        }