예제 #1
0
 public DapperRepository(IRepositoryContext repositoryContext) : base(repositoryContext)
 {
     if (repositoryContext is IDapperRepositoryContext)
     {
         this.dapperRepositoryContext = (IDapperRepositoryContext)repositoryContext;
     }
     else
     {
         throw new ArgumentException("The specified Repository context is not the instance of IDapperRepositoryContext.");
     }
 }
예제 #2
0
 public DapperRepository(IRepositoryContext repositoryContext) : base(repositoryContext)
 {
     if (repositoryContext is IDapperRepositoryContext)
     {
         this.dapperRepositoryContext = (IDapperRepositoryContext)repositoryContext;
     }
     else
     {
         throw new ArgumentException("The provided repository context type is invalid. DapperRepository requires an instance of DapperRepositoryContext to be initialized.");
     }
 }
예제 #3
0
 public DapperRepository(IRepositoryContext context) : base(context)
 {
     _dpContext = context as IDapperRepositoryContext;
 }