1

I am going to start a project, which in the BLL would have something like:

  • Jumper
  • Map
  • Record

I need to keep track of all those, so I will make probably classes which hold them, e.g.:

  • JumperList
  • MapList
  • RecordList

First of all, is that a good practice to hold all the objects and is it good if I separate them like:

BLL.Entity for the Jumper, Map, Record and BLL.List for JumperList, MapList, RecordList


Okay, I may have written it in a confusing way. What I meant was, is it good to make it like that:

BLL.Entity
 - Jumper
 - Map
 - Record
BLL.List
 - JumperList
 - MapList
 - RecordList
5
  • 1
    I don't really think you have enough entities to get any advantage from separating them. I don't even think you can think of sensible way to separate them. Commented Jan 16, 2014 at 21:40
  • @Euphoric I have more than 10 classes, those 3 I have given are just an example. My point was to separate the entity classes and entityList classes Commented Jan 16, 2014 at 21:51
  • I have updated my question Commented Jan 16, 2014 at 21:59
  • What do the classes do? Commented Jan 16, 2014 at 22:42
  • @LynHeadley, they are in the BLL.. just basic objects which I will generate from XML Commented Jan 16, 2014 at 23:41

1 Answer 1

-1

Separating is often good practise. But i prefer Repository, not List. And also look at this separation:

Bll.Jumper
    +JumperEntity
    +JumperRepository
Bll.Map
    +MapEntity
    +MapRepository
Bll.Record
    +RecordEntity
    +RecordRepository
2
  • I was probably confusing, please check my additional example Commented Jan 16, 2014 at 21:58
  • For example, when updating in Jumper context you will probably want to look up both Repository and Entity. Or looking for projects domains, this is looking pretty clear. I think separating with item's domain better than item's task. Don't worry about Repository or List word. Commented Jan 16, 2014 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.