Walaa wrote:
How do you check for the unique costraint?
(Edit)
Why don't you specify "case-insensitive" in the database?
Like this
private static bool isduplicaterecord(string inputstring) // check duplicate records in table
{
var adapteraccountnature = new DataAccessAdapter();
var accountnature = new AccountnatureEntity
{
Description = inputstring,
Flag = ClubCentricBISpecific.StandardFlag.recordvalidflag
};
adapteraccountnature.FetchEntityUsingUniqueConstraint(accountnature,
accountnature.ConstructFilterForUCDescriptionFlag());
adapteraccountnature.CloseConnection();
return (accountnature.Fields.State) == EntityState.Fetched;
}