All Questions
3,849
questions
0
votes
1
answer
153
views
Design Questions
Im building a windows app in c# and I have the following design question :
I have the following object structure : Parent -> Child Collection - > Child - > Grandchild collection -> Grandchild.
The ...
22
votes
5
answers
33k
views
How can I find all the public fields of an object in C#?
I'm constructing a method to take in an ArrayList(presumably full of objects) and then list all the fields(and their values) for each object in the ArrayList.
Currently my code is as follows:
public ...
2
votes
6
answers
666
views
General Business Object Practices (and exception errors - redux)
Recently, I made a post about the developers I'm working with not using try catch blocks properly, and unfortuantely using try... catch blocks in critical situations and ignoring the exception error ...
0
votes
1
answer
507
views
How to detect the current sharepoint pages from the client machine?
On the client machine I need to be able to somehow detect which sites the current user are looking at right now.
I know the base URL of the sharepoint app, say sharepoint.thecompany.net but how the ...
10
votes
7
answers
12k
views
How do you implement audit trail for your objects (Programming)?
I need to implement an audit trail for Add/Edit/Delete on my objects,I'm using an ORM (XPO) for defining my objects etc. I implemented an audit trail object that is triggered on
OnSaving
OnDeleting
...
1
vote
3
answers
5k
views
Differences Between DataSet Merges
Is there a difference (performance, overhead) between these two ways of merging data sets?
MyTypedDataSet aDataSet = new MyTypedDataSet();
aDataSet .Merge(anotherDataSet);
aDataSet .Merge(...
2
votes
3
answers
1k
views
Creating objects driven by the database to populate a Treeview - very slow
I have an application that reads a table from a database.
I issue an SQL query to get a result set, based on a unique string value I glean from the results, I use a case/switch statement to generate ...
0
votes
4
answers
394
views
Test an object for NOT being a type
I know how to test an object to see if it is of a type, using the IS keyword e.g.
if (foo is bar)
{
//do something here
}
but how do you test for it not being "bar"?, I can't seem to find a ...
0
votes
5
answers
960
views
Arbitrary Naming Convention (Business Objects)
Ok, do you do Business.Name or Business.BusinessName
SubCategory.ID or SubCategory.SubCategoryID
What about in your database?
Why?
I'm torn with both. Would love there to be a "right answer"