SQL-256: Builder.Repository¶
This is a repository-handle accessor — Builder<T>.Repository returns a repository instance for an open generic T and issues no query. No SQL is executed by Builder.Repository.
Classification¶
| Field | Value |
|---|---|
| SQL ID | SQL-256 |
| Operation type | N/A (no query executed) |
| Execution method | N/A (no query executed) |
| Database | Oracle* |
| Schema | [unqualified]** |
| Command type | N/A (no query executed) |
| Business object | Builder |
| Criteria property | N/A — no query |
| Lifecycle method | Repository |
Tables¶
No tables are accessed. This statement is a generic repository-handle accessor with no bound entity type, so no table or column can be attributed to it.
Repository accessor¶
Source: Data/SAIF.Data/TestRepository/RepositoryBuilders/Builder.cs:12.
// Data/SAIF.Data/TestRepository/RepositoryBuilders/Builder.cs:12
protected IRepository<T> Repository { get { return Uow.GetRepository<T>(); } }
Sample SQL¶
Test double — no runtime SQL. This statement executes against
TestUnitOfWork/TestRepository<T>(in-memory,List<TEntity>-backed test doubles inSAIF.Framework.Core); no NHibernate session is opened and no SQL is issued at runtime — no database table is accessed when this code runs.Cannot be reliably inferred.
Builder<T>.Repositoryis a protected property getter returningUow.GetRepository<T>()for an open genericT.GetRepository<T>()only resolves a repository object; it issues no query, andTis not bound to any entity (hence no mapping). There is no LINQ expression to translate. Recommend the Writer document this as "repository accessor — no data access" or retire the page.
Sources¶
Data/SAIF.Data/TestRepository/RepositoryBuilders/Builder.cs:12