Subtype to supertype

Posts   
 
    
e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 08-Apr-2009 01:57:34   

hi all, i have a student table that is the subtype for the user table. user table keeps user common fields like first, last name, phone and the studen table keeps student specific info like admission date, parent info.

how can i create a student collection that will list all students with their common and student specific info? it ll basically hold first last name, and admission date.

thank you -shane

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 08-Apr-2009 03:25:37   

Hi Shane,

So, you don't have set any inheritance, and you want to implement it, right? Have you checked this?

In general, please post more information (http://llblgen.com/tinyforum/Messages.aspx?ThreadID=7725).

David Elizondo | LLBLGen Support Team
e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 08-Apr-2009 03:57:22   

daelmo wrote:

Hi Shane,

So, you don't have set any inheritance, and you want to implement it, right? Have you checked this?

no i dont have any inheritance and yes i ve chekced the link. is it the only way to accomplish this? if so how can i still do it? say i have the inheritance which i can create right this minute. how can i create a student collection from there?

In general, please post more information (http://llblgen.com/tinyforum/Messages.aspx?ThreadID=7725).

im sorry; using the latest version of llblgen (2.6) with ms sqlexpress 2008, visual studio 2008 C# .net 3.5 SelfServicing

thank you

e106199
User
Posts: 175
Joined: 09-Sep-2006
# Posted on: 08-Apr-2009 04:36:07   

im sorry, creating the inheritance made it automatically. creating a student entity or a student entity collection gets all properties from its supertype also.

just a quick question: users table (supertype) has 10 fields, students table (subtype) has 15 fields. all i need is the studentid from the students table and the fullname from the users table. i dont need the rest of the fields. how can i create a collection that will only give me the two fields only?

thank you -shane

nevermind, i found it simple_smile ExcludeIncludeFieldsList.