开发者

net: business entity?

hi开发者_如何学编程 all I would like to know that what considerations we need to do when designing business entities as a software architect?

Any reference or help is appreciated.


Its a very broad question but some high level topics that i think you must look at include:-

  • Concurrency - how your objects will handle it
  • Caching of Business objects and how it will be done.
  • Persistence / Retrival of business objects - If you use will use an ORM - Decision as to what ORM best fits your needs
  • Business rules validation and how it will work
  • Parent-child relationship management
  • N-level undo
  • Databinding Support
  • Transactions Support
  • Serialization of the business objects
  • Utilities like cloning (deep copy) of objects

    In addition, there will be various patterns that you need to consider based on what suits your requirements best

    1. What kind of responsibility pattern will they have. Eg: Expert Business objects
    2. Will the objects incorporate patterns like lazy loading their data or not.

    I think it would be good to explore some ORM like NHibernate or business object framework like Rockford Lhotka's CSLA as a starting point.

    This should give you a pretty fair starting point and even help you decide if these frameworks meet your specific needs or you need something else.

  • 0

    上一篇:

    下一篇:

    精彩评论

    暂无评论...
    验证码 换一张
    取 消

    最新问答

    问答排行榜