Multiple Tables in an object


Author
Message
Robert Harvey
Robert Harvey
StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)StrataFrame Beginner (19 reputation)
Group: Forum Members
Posts: 9, Visits: 28
Let's say I have a strongly-typed dataset that contains multiple tables.  And, let's call this dataset 'Orders'.  How can I create an object with Strata-frame?  All of the documentation points to one table per object.  Not that the attachment is a 'real-life' example.  But, I don't want to upload what I use at our company for public consumption.
Attachments
XSDSchema1.zip (164 views, 1,013 bytes)
Replies
Charles R Hankey
Charles R Hankey
StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)StrataFrame VIP (1.3K reputation)
Group: Forum Members
Posts: 524, Visits: 30K
Thanks a lot for this Robert. I'll file it away for when my SF level rises BigGrin
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The underscore is just a convention that we use internally.  It's not a .NET naming convention.  However, with VB, when you create a "Public WithEvents MyField As SomeType" field on your class, VS behind the scenes creates a field named the same as your field, but with an underscore (_MyField) and instead of creating a public field, it wraps the implicit private (_MyField) with a public property. 

Other than that, I don't know of any convention that says that your private fields (or any other member fields) need to start with an _.  We just do because we like the convention.  I've looked through the .NET framework using Reflector a few times, and in most of their stuff, they either start their private fields with an _ and camel case them or just camel case them (_myField or myField).  It's entirely up to you.

I can't find the MSDN page that lists the .NET naming conventions, but this guy has most of them listed.  Look down at the one that says "Class-Level Private and Protected Variables"

http://www.irritatedvowel.com/Programming/Standards.aspx

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Robert Harvey - 20 Years Ago
StrataFrame Team - 20 Years Ago
Daniel Essin - 20 Years Ago
Robert Harvey - 20 Years Ago
                 But, you can post in C#. Either way works for me.
Robert Harvey - 20 Years Ago
StrataFrame Team - 20 Years Ago
StrataFrame Team - 20 Years Ago
Michael Cobb - 18 Years Ago
StrataFrame Team - 18 Years Ago
Charles R Hankey - 18 Years Ago
StrataFrame Team - 18 Years Ago
Charles R Hankey - 18 Years Ago
StrataFrame Team - 18 Years Ago
Charles R Hankey - 18 Years Ago
Michael Cobb - 18 Years Ago
Charles R Hankey - 18 Years Ago
StrataFrame Team - 18 Years Ago
Michael Cobb - 18 Years Ago
Michael Cobb - 18 Years Ago
choyt - 18 Years Ago
StrataFrame Team - 18 Years Ago
choyt - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search