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