0

I have a list of tables and I'd like to select only necessary columns. How can I set filter witn FetchPolymorphic method?

misho
  • 1,195
  • 6
  • 16
  • 29

1 Answers1

1

FetchPolymorphic is done against an entity object when using SelfServicing so basically you are getting back an entity

C#

FamilyCarEntity car = (FamilyCarEntity)CompanyCarEntity.FetchPolymorphic(null, 4, null);

VB.NET

Dim car As FamilyCarEntity = CType(CompanyCarEntity.FetchPolymorphic(Nothing, 4, Nothing), FamilyCarEntity)

Once you have the entity object back (table or view) you can access it's properties (fields)

Using the Adapter is similar

Saif Khan
  • 18,402
  • 29
  • 102
  • 147