This looks to be a very simple problem. Your code is a bit confusing as you are creating a new BO instance inside of the BO you are referencing. So this is a bit confusing. Secondly, you are seeking inside of the property itself, which again, could cause all types of problems and is definitely not recommended. Your code should look more like this:public System.String ApproverCode
{
get
{
Guid id = this.CurrentRow["ApproverId"] == DBNull.Value ? Guid.Empty : (Guid)this.CurrentRow["ApproverId"];
if (id != null)
{
//-- Obviously you will want to call another internal method. But you should get the idea. Calling
//-- a scalar method would be faster and cleaner than your other code.
return (string)Me.ExecuteScalar("SELECT code FROM WhateverTable WHERE mycriteria = @mycritera);
}
else
{
return string.Empty;
}}}
If you can't get it to work, then post a sample that reproduces the problem instead of posting code snippetts. Thanks.