Get repository instance used for wrapped constructor type repositories.
Namespace: MonoSoftware.LLBLGenAssembly: MonoSoftware.LLBLGen (in MonoSoftware.LLBLGen.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static Repository GetRepositoryInstance( Type repositoryType ) |
Visual Basic |
---|
Public Shared Function GetRepositoryInstance ( repositoryType As Type ) As Repository |
Visual C++ |
---|
public: static Repository^ GetRepositoryInstance( Type^ repositoryType ) |
F# |
---|
static member GetRepositoryInstance : repositoryType : Type -> Repository |
Parameters
- repositoryType
- Type: System..::..Type
Repository type
Return Value
Type: RepositoryRepository instance
Remarks
Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code.
Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf