Example #1
0
 protected internal DapperBase()
 {
     _connectionContainer = new ConnectionContainer()
     {
         Connection = new SqlConnection(ConfigurationManager.ConnectionStrings["YummyDB"].ConnectionString)
     };
 }
Example #2
0
 public void Dispose()
 {
     if (!_leaveOpen)
     {
         _connectionContainer.Dispose();
     }
     _connectionContainer = null;
 }
Example #3
0
 protected internal DapperBase(ConnectionContainer container, bool leaveOpen)
 {
     _leaveOpen           = leaveOpen;
     _connectionContainer = container;
 }
Example #4
0
 public DapperModelQuery(IEnumerable <T> query, ConnectionContainer dbConnection)
 {
     _query        = query;
     _dbConnection = dbConnection;
 }