Hi,
i am Trying to get the EmployeeDetails through NHIBERNATE
i defined the EmployeeDetails class and properties and mapped to nhibernate mapping file(EmployeeDetails.hbm.xml)
now i am trying to get data from WCF SErvice
from wcf service i called the below method
Code:
public IList<EmployeeDetails>  GetEmployees()
        {
            //Session.EnableFilter("CheckStatus").SetParameter("CheckDefaultStatus", "T");
            //Session.EnableFilter("CheckLocationStatus").SetParameter("CheckDefaultLocationStatus", "T");
            IQuery query = Session.CreateQuery("from EmployeeDetails");
            IList<EmployeeDetails> empdetails = query.List<EmployeeDetails>();
            return empdetails;
            //return null;
        }
this code is returning EmployeeDetails into Wcf service
inturn i am calling the wcf corresponding method from ui
this method is throwing error saying
There was an error while trying to serialize parameter 
http://tempuri.org/:getEmployeesResult. The InnerException message was 'Object graph for type 'InfraStructureLayerSample.EmployeeDetails' contains cycles and cannot be serialized if reference tracking is disabled.'.  Please see InnerException for more details.
can anyone help me