比方说,我有一个这样的方法在我的业务层:哪个层应该说域模型?
// 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.
}
如果这些方法都将域模型的实例或者只是主键?