Hi,
Your example in documentation is like this
DataAccessAdapter adapter = new DataAccessAdapter();
CustomerEntity customer = new CustomerEntity();
customer.CompanyName = "Chop-suey Chinese";
adapter.FetchEntityUsingUniqueConstraint(customer, customer.ConstructFilterForUCCompanyName());
What I need?
In designer I have created unique constraint for CompanyName, Flag and named unique constraint as "CheckCustomer".
Before Inserting entity, I want to check whether this unique constraint combination exist and if yes do not insert.
Since I have created in designer unique constraint with name CheckCustomer", how can i write the code to achieve this instead of again defining unique constraints in code as per documention example above. This will reduce no of lines of code for me