public void Update(CV_PM_ALT_CRITERION entity, bool updateAll, DbTransaction transaction)
 {
     throw new NotImplementedException();
 }
 public void Update(CV_PM_ALT_CRITERION entity)
 {
     throw new NotImplementedException();
 }
 public CV_PM_ALT_CRITERION Insert(CV_PM_ALT_CRITERION entity)
 {
     throw new NotImplementedException();
 }
 public CV_PM_ALT_CRITERION Insert(CV_PM_ALT_CRITERION entity, DbTransaction transaction)
 {
     throw new NotImplementedException();
 }
        private static CV_PM_ALT_CRITERION ReadEntity(IDataReader dataReader)
        {
            CV_PM_ALT_CRITERION CV_PM_ALT_CRITERIONEntity = new CV_PM_ALT_CRITERION();
            object value;


            value = dataReader["CriterionID"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.CriterionID = (Guid?)value;
            }

            value = dataReader["AlertID"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.AlertID = (Guid?)value;
            }

            value = dataReader["AlertName"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.AlertName = (String)value;
            }

            value = dataReader["AlertAlias"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.AlertAlias = (String)value;
            }

            value = dataReader["Relation"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Relation = (String)value;
            }

            value = dataReader["Element"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Element = (String)value;
            }

            value = dataReader["ColumnAlias"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ColumnAlias = (String)value;
            }

            value = dataReader["Alias"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Alias = (String)value;
            }

            value = dataReader["Operator"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Operator = (String)value;
            }

            value = dataReader["Value"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Value = (String)value;
            }

            value = dataReader["ScaleType"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ScaleType = (Int32?)value;
            }

            value = dataReader["ScaleTypeName"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ScaleTypeName = (String)value;
            }

            value = dataReader["Action"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Action = (Int32?)value;
            }

            value = dataReader["ActionName"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ActionName = (String)value;
            }

            value = dataReader["Sequence"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.Sequence = (Int32?)value;
            }

            value = dataReader["ParentID"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ParentID = (Guid?)value;
            }

            value = dataReader["CritLevel"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.CritLevel = (Int32?)value;
            }

            value = dataReader["IsActive"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.IsActive = (Boolean?)value;
            }

            value = dataReader["CreatedBy"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.CreatedBy = (String)value;
            }

            value = dataReader["CreatedOn"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.CreatedOn = (DateTime?)value;
            }

            value = dataReader["ModifiedBy"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ModifiedBy = (String)value;
            }

            value = dataReader["ModifiedOn"];
            if (value != DBNull.Value)
            {
                CV_PM_ALT_CRITERIONEntity.ModifiedOn = (DateTime?)value;
            }

            return(CV_PM_ALT_CRITERIONEntity);
        }