Page 1 of 1

Partial declarations of 'tblName' must not specify

PostPosted: Fri Apr 01, 2016 6:22 pm
by perryp38
I am trying to update a Visual Studio 2005 aps.net project to Visual Studio 2013. After the update I get this error message when I compile.
"Partial declarations of 'PSD.Tbl_Name' must not specify different base "

here is the code I am using:

Code: Select all
using System;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.Xml;
using System.Xml.Serialization;
using SubSonic;
using SubSonic.Utilities;
// <auto-generated />
namespace PSD
{
   /// <summary>
   /// Strongly-typed collection for the Tbl_Division class.
   /// </summary>
    [Serializable]
   public partial class Tbl_DivisionCollection : ActiveList<Tbl_Division, Tbl_DivisionCollection>
   {      
      public Tbl_DivisionCollection() {}
       
        /// <summary>
      /// Filters an existing collection based on the set criteria. This is an in-memory filter
      /// Thanks to developingchris for this!
        /// </summary>
        /// <returns>Tbl_DivisionCollection</returns>
      public Tbl_DivisionCollection Filter()
        {
            for (int i = this.Count - 1; i > -1; i--)
            {
                Tbl_Division o = this[i];
                foreach (SubSonic.Where w in this.wheres)
                {
                    bool remove = false;
                    System.Reflection.PropertyInfo pi = o.GetType().GetProperty(w.ColumnName);
                    if (pi.CanRead)
                    {
                        object val = pi.GetValue(o, null);
                        switch (w.Comparison)
                        {
                            case SubSonic.Comparison.Equals:
                                if (!val.Equals(w.ParameterValue))
                                {
                                    remove = true;
                                }
                                break;
                        }
                    }
                    if (remove)
                    {
                        this.Remove(o);
                        break;
                    }
                }
            }
            return this;
        }
      
      
   }
   /// <summary>
   /// This is an ActiveRecord class which wraps the Tbl_Division table.
   /// </summary>
   [Serializable]
   public partial class Tbl_Division : ActiveRecord<Tbl_Division>, IActiveRecord
   {