public IList<Core.Business.JointReviewFormsAdditional> GetAllJointReviewFormsAdditional()
        {
            IList<Core.Business.JointReviewFormsAdditional> jointReviewFormsAdditionallist = new List<Core.Business.JointReviewFormsAdditional>();
            SqlServerUtility sql = new SqlServerUtility();

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

            if(reader != null)
            {
                while(reader.Read())
                {
                    Core.Business.JointReviewFormsAdditional jointReviewFormsAdditional = new Core.Business.JointReviewFormsAdditional();

                    if (!reader.IsDBNull(0)) jointReviewFormsAdditional.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) jointReviewFormsAdditional.FormID = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) jointReviewFormsAdditional.Name = reader.GetString(2);
                    if (!reader.IsDBNull(3)) jointReviewFormsAdditional.Model = reader.GetString(3);
                    if (!reader.IsDBNull(4)) jointReviewFormsAdditional.Nub = reader.GetDouble(4);
                    if (!reader.IsDBNull(5)) jointReviewFormsAdditional.Price = reader.GetString(5);
                    if (!reader.IsDBNull(6)) jointReviewFormsAdditional.Des = reader.GetString(6);

                    jointReviewFormsAdditional.MarkOld();
                    jointReviewFormsAdditionallist.Add(jointReviewFormsAdditional);
                }
                reader.Close();
            }
            return jointReviewFormsAdditionallist;
        }
        public IList<Core.Business.JointReviewFormsAdditional> SelectJointReviewFormsAdditionalDynamic(string whereCondition, string orderByExpression)
        {
            IList<Core.Business.JointReviewFormsAdditional> jointReviewFormsAdditionallist = new List<Core.Business.JointReviewFormsAdditional>();
            SqlServerUtility sql = new SqlServerUtility();
            sql.AddParameter("@WhereCondition", SqlDbType.NVarChar, whereCondition);
            sql.AddParameter("@OrderByExpression", SqlDbType.NVarChar, orderByExpression);

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

            if (reader != null)
            {
                while (reader.Read())
                {
                    Core.Business.JointReviewFormsAdditional jointReviewFormsAdditional = new Core.Business.JointReviewFormsAdditional();

                    if (!reader.IsDBNull(0)) jointReviewFormsAdditional.Id = reader.GetGuid(0);
                    if (!reader.IsDBNull(1)) jointReviewFormsAdditional.FormID = reader.GetGuid(1);
                    if (!reader.IsDBNull(2)) jointReviewFormsAdditional.Name = reader.GetString(2);
                    if (!reader.IsDBNull(3)) jointReviewFormsAdditional.Model = reader.GetString(3);
                    if (!reader.IsDBNull(4)) jointReviewFormsAdditional.Nub = reader.GetDouble(4);
                    if (!reader.IsDBNull(5)) jointReviewFormsAdditional.Price = reader.GetString(5);
                    if (!reader.IsDBNull(6)) jointReviewFormsAdditional.Des = reader.GetString(6);

                    jointReviewFormsAdditional.MarkOld();
                    jointReviewFormsAdditionallist.Add(jointReviewFormsAdditional);
                }
                reader.Close();
            }
            return jointReviewFormsAdditionallist;
        }