General information
Category:
Coding, syntax and commands
Environment versions
Network:
Windows 2003 Server
>>I'm wondering if this is the correct way or there is a better and simpler way.
Your code is correct and simple as for me.
I would write something like this:
foreach (SqlWhereBuilderCondition condition in this.SqlWhereBuilderPeople.Conditions)
{
if (condition.FieldId.Equals("IsActive"))
{
// Remove IsActive part in case we selected that condition - very rare case
RemoveIsActivePart = true;
}
}
>>BTW, are you using this class in your project as well?
No, I just downloaded it from codeproject now to see source code.
Maybe it will be useful in some project.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only