I have been tasked with updating an ASP.net Visual Studio 2005 project to Visual Studio 2013. The original project used a product called Subsonic version 2.2 and several Telerik controls. I have been able to solve the Telerik DLL issues but have been unable to figure out an issue with this error which appears to be in code generated by Subsonic.
The code below is causing this error "Partial declarations of 'PSD.Tbl_Division' must not specify different base "
using System;
using System.Text;
using System.Data;
/// <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
{
I am a Junior Programmer and have spent a lot of time reading the posts on this error message and am not able to get my mind wrapped around what I am reading and relate it to my situation.
Can anyone offer an explanation as to why am I getting this error and if possible why would it work in the Visual Studio 2005 but not Visual Studio 2013. Plus how can I correct this situation
Thanks Perry