【发布时间】:2009-08-04 23:05:07
【问题描述】:
我在 DAL 中有一个方法,例如:
public bool GetSomeValue(int? a, int?b, int c)
{
//check a Stored Proc in DB and return true or false based on values of a, b and c
}
在这个方法中,我传递了两个可为空的类型,因为这些值可以为空(并在 DB Stored Proc 中将它们检查为空)。我不想使用幻数,所以可以传递这样的可空类型(从性能和架构灵活性的角度来看)?
【问题讨论】:
标签: c# design-patterns