2013-04-08 91 views
1

我想使用驗證塊實施以下驗證類型。 我正在使用EntLib 5.0並在SQL Server數據庫中存儲驗證規則。 如何使用EntLib 5.0 Designer工具創建以下驗證。使用Microsoft企業庫驗證塊創建複雜驗證

If(PaymentType == 'CreditCard') 
{ 
    if(BilledAmount<100) 
    { 
     ErrorMsg = "Bill amount should greater than or equal to 100"; 
    } 
    else if (BillAmount + TaxAmount > CreditCardMaxLimit) 
    { 
     ErrorMsg= "Credit card Max Amount limit is " + CreditCardMAxLimit; 
    } 
} 

回答