Are the objects strongly typed?

Posts   
 
    
JKC
User
Posts: 16
Joined: 25-Jan-2008
# Posted on: 29-Jan-2008 16:28:55   

I'm noticing I have to do alot of Covert.int32 on properties of generated objects. Are the generated entity classes strongly typed?

goose avatar
goose
User
Posts: 392
Joined: 06-Aug-2007
# Posted on: 29-Jan-2008 16:41:22   

Yes they are strongly typed, you don't have to use Convert.Int32 unless the field has a different type specified in the llblgenpro designer, could you doublecheck that? are the types in the llbl project different from the ones in the database?

JKC
User
Posts: 16
Joined: 25-Jan-2008
# Posted on: 29-Jan-2008 17:18:22   

goose wrote:

Yes they are strongly typed, you don't have to use Convert.Int32 unless the field has a different type specified in the llblgenpro designer, could you doublecheck that? are the types in the llbl project different from the ones in the database?

It's possible. I didnt check that... thought it autoset.

Walaa avatar
Walaa
Support Team
Posts: 14950
Joined: 21-Aug-2005
# Posted on: 30-Jan-2008 09:47:21   

In the Designer, fields types are mapped to the database types, but you can also use a TypeConverter to change the mapped typed to another .NET type.