我喜欢在DAL方法:存储在公共API使用可空类型
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检查他们为空PROC)。我不想使用幻数,那么它是否可以传递类似这样的类型(从性能和架构灵活性角度来看)?