trivial mistakes are often most hard to locate ! done this many times but don't know why its throwing his error
I need to get employee firstname and lastname concatenated in a property FullName.So that the display member of a combobox can be set to "FullName".
For this i simply created another partial class corresponding to the Employee class generated in my data model as below
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Objects.DataClasses;
namespace IGarage.DAL
{
public partial class Employee : EntityObject
{
public string FullName
{
get
{
return FullName;
}
set
{
value = this.FirstName + " " + this.LastName;
}
}
}
}
in a file named Employee.cs
But when i query the DB related to Employee it throws following error :
Also when i explore the problem i see this
please advice.
FullName
calls theFullName
property, which calls theFullName
property, which calls theFullName
property.... – Tim