LLBlGen 3.0
.net 2.0
Oracle 10g
Hi, I have written a function to return true if a record exist in database.
private static bool isduplicaterecord() // check duplicate records in table
{
var adapteraccountnature = new DataAccessAdapter();
var accountnature = new AccountnatureEntity();
accountnature.Description = "Test";
accountnature.Flag = ClubCentricBISpecific.StandardFlag.recordvalidflag;
adapteraccountnature.FetchEntityUsingUniqueConstraint(accountnature,
accountnature.ConstructFilterForUCDescriptionFlag());
if ((accountnature.Fields.State=EntityState.Fetched) != EntityState.New)
{
return false; // no matching records found
}
return true; // matching records found
}
Problem: This always return FALSE. What am i doing wrong ! Please HELP