You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
336 B
TypeScript

import { DataSource, Repository } from "typeorm";
import { Common } from "./common.entity";
import { Injectable } from "@nestjs/common";
@Injectable()
export class commonRepository extends Repository<Common>{
constructor(
private datasource:DataSource
){
super(Common,datasource.createEntityManager());
}
}