コード例 #1
0
ファイル: UserValidator.cs プロジェクト: tuongntk/BankPayment
 public Application Validate(string publicKey)
 {
     using (var context = new BankPaymentContext())
     {
         var app = context.Applications.FirstOrDefault(x => x.PublicKey == publicKey);
         if (app == null)
         {
             return(null);
         }
         return(app);
     }
 }
コード例 #2
0
 public TransactionRepository(BankPaymentContext context)
 {
     this.context = context;
     entity       = context.Set <Transaction>();
 }
コード例 #3
0
 public ApplicationBankParamRepository(BankPaymentContext context)
 {
     this.context = context;
     entity       = context.Set <ApplicationBankParam>();
 }
コード例 #4
0
 public BankRepository(BankPaymentContext context)
 {
     this.context = context;
     entity       = context.Set <Bank>();
 }