Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using meta-data in .NET
Message
From
22/10/2007 13:29:39
 
 
To
22/10/2007 12:56:41
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01262116
Message ID:
01262602
Views:
23
Didn't forget anything. I don't like to be called rude by someone who I went out of my way to help, because he didn't think I helped enough.

Especially at this level. Reminds me of a teacher I had at UCLA extension a couple yrs ago. He started off the first class by mentioning how his reputation in the school wasn't the best. These classes are supposed to be for professionals. And he let people know that he didn't like questions that were toooo basic.

When he handed out the 1st homework, he gave us his email too. But he forewarned the class. "You send me an email and say I can't get the homework to work, you're probably not going to get an answer from me. You send me an email and say you can't get your program to compile without errors, you're probably not going to get an answer from me. You send me an email and say I'm getting this error message on this line of code, and these are the things I've already tried... You're probably going to get an answer from me.



>Perry,
>
>Did you forget to take your meds? <g>
>
>Not to be rude myself, but you've got to expect to be a teacher a little bit when you answer forum questions. A little snippet of sample code wouldn't hurt. I wouldn't exactly call Hashtables "basic programming" anyway. That said, I don't *always* give examples either ... sometimes it *is* just easier to make a suggestion (as you suggested to use Hashtables) and let the poster look it up from there ... I agree with you.
>
>However, there have been many times when I've griped about varioius posters competency, but to myself ... I then bite my tongue and don't reply in that tone. Not so much on this forum though ... I participate in a few others as well. You've just got to expect that, to some degree, from newbies and be patient with them. We were all there at one time. =0)
>
>~~Bonnie
>
>
>>So sorry. Why don't you just send me the entire project and I'll complete it for you. Would that make you feel better????
>>
>>Personally, I have to question your ability. I don't know how anyone can succeed as a programmer if they can't take the initiative to figure things out on their own.
>>
>>I took the effort to respond to your question and point you in the right direction. Yet you insult me, and wait for other's to do your work for you.
>>
>>I was just talking to someone today about candidates he was interviewing for a programming job. He said he was disappointed because all the candidates were extremely average. Focused on the technicalities of programming without understanding what they are doing.
>>
>>You fit that picture to a "T".
>>
>>>>I'm not trying to be rude.
>>>
>>>Yet you succeed...
>>>
>>>
>>>>But if you have to ask this question, you don't even know the rudimentary aspects of dotnet.
>>>
>>>I am a novice indeed.
>>>
>>>
>>>>And you're asking me to become your teacher to bring you up to speed.
>>>
>>>No. I asked a specific question.
>>>
>>>
>>>>I think at a minimum, before you ask this kind of question, you read a C#/Vb.net 101 book, so you understand the basics first.
>>>
>>>You could say that less insultingly.
>>>
>>>
>>>>>Can you explain a little more, please.
>>>>>
>>>>>Thanks for the response.
>>>>>
>>>>>Alex
>>>>>
>>>>>>Create a hashmap where the key is the value of the metadata.
>>>>>>
>>>>>>>Hello,
>>>>>>>
>>>>>>>How could I handle the following situation in .NET?
>>>>>>>
>>>>>>>In a time and attendance application there any many pay categories. Each pay category needs to be agregated into several total types. Information describing pay categories, total types, and the total types into which each pay category must be added is stored in meta-data tables.
>>>>>>>
>>>>>>>The transaction table has two child tables, one with daily data (one record for hours worked in each pay category each day) and one with summary data for the transaction which include totals by pay category as well as by total type (one record for each different total).
>>>>>>>
>>>>>>>In VFP, I might create an object at run time with properties named after the pay categories and total types described in the meta-data tables and use them as acumulators. That may look like this:
>>>>>>>
>>>>>>>
>>>>>>>ADDPROPERTY(oTransaction.oData,Metadata.cCategory,0)
>>>>>>>
>>>>>>>
>>>>>>>At the beginning of the editing process I would take previous info from the daily data table and sum it into the just created properties of the business object according to the rules of the meta-data. It may be something like this:
>>>>>>>
>>>>>>>
>>>>>>>lnAmount = DailyData.nAmount
>>>>>>>lcCategory = DailyData.cCategory
>>>>>>>lcTotalType = Metadata.cTotalType
>>>>>>>oTransaction.oData..&lcCategory = oTransaction.oData..&lcCategory + lnAmount
>>>>>>>oTransaction.oData..&lcTotalType = oTransaction.oData..&lcTotalType + lnAmount
>>>>>>>
>>>>>>>
>>>>>>>As user adds/deletes/modifies records in daily data, changes are made to the accumulators in a similar manner. During SAVE, changes to the daily data table are commited and the values of the various properties replace the previous values in the summary data table.
>>>>>>>
>>>>>>>How can I take a similar approach with Strataframe? In other words, how can I create and refer to properties of the Business Object at runtime based on the content of meta data tables?
>>>>>>>
>>>>>>>TIA,
>>>>>>>
>>>>>>>Alex

(On an infant's shirt): Already smarter than Bush
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform