Byte Field in a View

Posts   
 
    
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 24-Nov-2009 06:16:28   

Have a view that include a filed called Picture that is of type Byte

When i try to reference the entity in code i get error...

The field name 'Picture' isn't known in the element 'VwCustomerProductsEntity' Parameter name: fieldName

<code> Dim oDLCustomerProduct As New VwCustomerProductsEntity(ProductID)

                    If oAdapter.FetchEntity(oDLCustomerProduct) Then  

</code>

The field is definitely in the entity b/c i can reference the field like oDLCustomerProduct .Picture

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 24-Nov-2009 06:40:14   

That entity is a database view mapped as an entity right?

David Elizondo | LLBLGen Support Team
Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 24-Nov-2009 08:58:46   

sorry

2.6, adapter,vb.net, vs2005

Correct..view mapped as entity...

Anthony
User
Posts: 155
Joined: 04-Oct-2006
# Posted on: 24-Nov-2009 09:10:27   

getting this from

Method Enter: DataAccessAdapterBase.FetchEntity(4) Method Enter: DataAccessAdapterBase.FetchEntityUsingFilter(5) Active Entity Description: Entity: SmallBiz.SBH.Dal.Adapter.llblgen.EntityClasses.VwCustomerProductsEntity. ObjectID: ee4deacd-67d2-4768-961a-6b1be89b350a PrimaryKey field: CustomerProductId. Type: System.Int32. Value: 1499574

A first chance exception of type 'System.ArgumentException' occurred in SD.LLBLGen.Pro.ORMSupportClasses.NET20.DLL Method Enter: DataAccessAdapterBase.CloseConnection Method Exit: DataAccessAdapterBase.CloseConnection

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 24-Nov-2009 10:40:53   

I guess the 2 projects of the generated code are not in sync. Please re-generate the code, and make sure your application references the newly generated code (the 2 projects).