Right now I'm using reflection on the [Object]Fields class and enumerating the properties to find the primary key columns. Is there a faster way that can just return me which properties are the primary key ones?
Hi happyfirst
Here is the easier way:
// given some customer CustomerEntity someCustomer = new CustomerEntity(); // gets primary key fields List<IEntityField2> pkFields = ((IEntity2)someCustomer).PrimaryKeyFields;
Hope helpful
Thanks! Although I had to use IEntity. IEntity2 was invalid cast.