比方說,我有一個這樣的方法在我的業務層:哪個層應該說域模型?
// 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.
}
如果這些方法都將域模型的實例或者只是主鍵?