public IList<Core.Business.JointReviewScoreTable> GetAllJointReviewScoreTable()
        {
            IList<Core.Business.JointReviewScoreTable> jointReviewScoreTablelist = new List<Core.Business.JointReviewScoreTable>();
            SqlServerUtility sql = new SqlServerUtility();

            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectJointReviewScoreTablesAll");

            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.JointReviewScoreTable jointReviewScoreTable = new Core.Business.JointReviewScoreTable();

                    if (!reader.IsDBNull(0)) jointReviewScoreTable.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) jointReviewScoreTable.Joi_Id = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) jointReviewScoreTable.JointReviewExpertsID = reader.GetGuid(2);
                    if (!reader.IsDBNull(3)) jointReviewScoreTable.NeedUtilization = reader.GetInt32(3);
                    if (!reader.IsDBNull(4)) jointReviewScoreTable.NeedDevelopment = reader.GetInt32(4);
                    if (!reader.IsDBNull(5)) jointReviewScoreTable.NeedExpected = reader.GetInt32(5);
                    if (!reader.IsDBNull(6)) jointReviewScoreTable.SharingForm = reader.GetInt32(6);
                    if (!reader.IsDBNull(7)) jointReviewScoreTable.ApplicabilityPerformance = reader.GetInt32(7);
                    if (!reader.IsDBNull(8)) jointReviewScoreTable.ApplicabilityConfiguration = reader.GetInt32(8);
                    if (!reader.IsDBNull(9)) jointReviewScoreTable.ManagementStaffing = reader.GetInt32(9);
                    if (!reader.IsDBNull(10)) jointReviewScoreTable.ManagementComplementary = reader.GetInt32(10);
                    if (!reader.IsDBNull(11)) jointReviewScoreTable.Budget = reader.GetInt32(11);
                    if (!reader.IsDBNull(12)) jointReviewScoreTable.BudgetImplementation = reader.GetInt32(12);
                    if (!reader.IsDBNull(13)) jointReviewScoreTable.TotalScore = reader.GetInt32(13);

                    jointReviewScoreTable.MarkOld();
                    jointReviewScoreTablelist.Add(jointReviewScoreTable);
                }
                reader.Close();
            }
            return jointReviewScoreTablelist;
        }
        public Core.Business.JointReviewScoreTable Select(Guid id)
        {
            SqlServerUtility sql = new SqlServerUtility();

            sql.AddParameter("@Id", SqlDbType.UniqueIdentifier, id);
            SqlDataReader reader = sql.ExecuteSPReader("usp_SelectJointReviewScoreTable");

            if (reader != null && !reader.IsClosed && reader.Read())
            {
                Core.Business.JointReviewScoreTable jointReviewScoreTable = new Core.Business.JointReviewScoreTable();

                if (!reader.IsDBNull(0)) jointReviewScoreTable.Id = reader.GetGuid(0);
                if (!reader.IsDBNull(1)) jointReviewScoreTable.Joi_Id = reader.GetGuid(1);
                if (!reader.IsDBNull(2)) jointReviewScoreTable.JointReviewExpertsID = reader.GetGuid(2);
                if (!reader.IsDBNull(3)) jointReviewScoreTable.NeedUtilization = reader.GetInt32(3);
                if (!reader.IsDBNull(4)) jointReviewScoreTable.NeedDevelopment = reader.GetInt32(4);
                if (!reader.IsDBNull(5)) jointReviewScoreTable.NeedExpected = reader.GetInt32(5);
                if (!reader.IsDBNull(6)) jointReviewScoreTable.SharingForm = reader.GetInt32(6);
                if (!reader.IsDBNull(7)) jointReviewScoreTable.ApplicabilityPerformance = reader.GetInt32(7);
                if (!reader.IsDBNull(8)) jointReviewScoreTable.ApplicabilityConfiguration = reader.GetInt32(8);
                if (!reader.IsDBNull(9)) jointReviewScoreTable.ManagementStaffing = reader.GetInt32(9);
                if (!reader.IsDBNull(10)) jointReviewScoreTable.ManagementComplementary = reader.GetInt32(10);
                if (!reader.IsDBNull(11)) jointReviewScoreTable.Budget = reader.GetInt32(11);
                if (!reader.IsDBNull(12)) jointReviewScoreTable.BudgetImplementation = reader.GetInt32(12);
                if (!reader.IsDBNull(13)) jointReviewScoreTable.TotalScore = reader.GetInt32(13);

                reader.Close();
                return jointReviewScoreTable;
            }
            else
            {
                if (reader != null && !reader.IsClosed)
                    reader.Close();

                return null;
            }
        }