inversify#unmanaged TypeScript Examples
The following examples show how to use
inversify#unmanaged.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: projection-event.handler.ts From ddd-cqrs-es-aws-sam with MIT License | 6 votes |
constructor (
protected readonly projectionRepository: ProjectionRepository<Projection>,
@unmanaged()
protected readonly projection: new() => P,
@unmanaged()
protected readonly projectionForAggregateRootName: string,
@unmanaged()
protected readonly projectionTableName: string,
protected readonly projectionLogger: Logger) {
}
Example #2
Source File: ModelTreeviewProvider.ts From vscode-dbt-power-user with MIT License | 6 votes |
constructor(
private dbtProjectContainer: DBTProjectContainer,
@unmanaged() private treeType: keyof GraphMetaMap
) {
this.treeType = treeType;
this.disposables.push(
window.onDidChangeActiveTextEditor(() => {
this._onDidChangeTreeData.fire();
}),
this.dbtProjectContainer.onManifestChanged((event) =>
this.onManifestCacheChanged(event)
)
);
}
Example #3
Source File: BaseMikroSqlRepository.ts From node-experience with MIT License | 5 votes |
constructor(@unmanaged() entityName: string, @unmanaged() entitySchema: EntitySchema<any>, @unmanaged() populate: string[] = [])
{
this.entityName = entityName;
this.repository = this.em.getRepository(entitySchema);
this.populate = populate;
}
Example #4
Source File: BaseMongoRepository.ts From node-experience with MIT License | 5 votes |
constructor(@unmanaged() entityName: string, @unmanaged() populate: string[] = [])
{
this.entityName = entityName;
this.repository = connection.model<D>(entityName);
this.populate = populate;
}
Example #5
Source File: BaseSqlRepository.ts From node-experience with MIT License | 5 votes |
constructor(@unmanaged() entityName: string, @unmanaged() schema: EntitySchema)
{
this.entityName = entityName;
this.repository = getRepository<T>(schema);
}
Example #6
Source File: base.repository.ts From nodejs-angular-typescript-boilerplate with Apache License 2.0 | 5 votes |
constructor(
@unmanaged() repository: Repository<T>
) {
this.baseRepository = repository;
}