Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • +1 for Once and Only Once. But what about treating different rows differently? Commented May 13, 2011 at 15:23
  • 1
    @Kramii - You can use something like enumeration classes. If the metadata only related to your program, then I'd put the business logic (IsDefaultOn...) in a property on the entity. Have it return true for the one entity. That would allow you to find that entity, given the whole collection. Or you could use a controller class that will provide you the appropriate entity with a method call. Commented May 13, 2011 at 16:47