Sorry for a stupid post - I have a couple questions. I'm just getting started and have seen the use of predicates in examples, but where is the "CustomerFields" object defined? Is this something I have to create myself as an enum or something? Here is an example I grabbed from here:
Dim da As New DataAccessAdapter
Dim customers As EntityCollection
Dim bucket As New RelationPredicateBucket()
Dim sortOrder As New SortExpression
customers = New EntityCollection(New CustomerEntityFactory)
bucket.PredicateExpression.Add(CustomerFields.Country = "France")
sortOrder = (CustomerFields.CompanyName Or SortOperator.Ascending)
da.FetchEntityCollection(customers, bucket, 0, sortOrder)
Also, I haven't found anywhere that I can trace to, in order to actually see the SQL being generated and run - is this accessible, or hidden within a dll or something
Lastly, I have an entity collection bound to a DataGridView, is there a way to directly reference the object that corresponds to a row (possibly through the currency manager) or do I just need to get a unique ID from the row and load using that (thats what I'm currently doing)
Thanks for any help!