【发布时间】:2009-02-27 19:24:10
【问题描述】:
假设我的业务层有这样的方法:
// This is in the business layer
public Result DeleteSomeDomainObject( ???? )
{
//Enforce business logic here.
//Delete records in the database
DAL. DeleteSomeDomainObject( ??? )
}
// This is in the data access layer
public Result DeleteSomeDomainObject( ???? )
{
// Delete records from the database.
}
这些方法应该采用域模型的实例还是只采用主键?
【问题讨论】:
标签: language-agnostic design-patterns