我有以下功能,显示以下错误 - 任何人都可以提出为什么我会收到此错误?
SELECT Concat(a.AgentFName,' ', a.AgentLName) AS 'Agent Name', a.AgentMobile, a.AgentEmail, b.BandName
FROM Agent a
--Join Entertainment on Agent AS Entertainment holds a foreign key to Agent
JOIN Entertainment e on e.AgentId = a.AgentId
--Join Band on Entertainment as Band holds a foreign key to Entertainment
Join Band b on b.EntertainmentId = e.EntertainmentId
--Finally join Genre on Entertainment as Entertainment holds a foreign key to Genre
JOIN Genre g on g.GenreId = e.GenreId
WHERE g.GenreName = 'rock' --Filter down to only rows where GenreName is 'rock
我在export class QuestionComponent implements OnInit {
questionnaire: FormGroup;
items;
constructor(private formBuilder: FormBuilder, private postDataIntoDB: ServerService) { }
ngOnInit() {
this.questionnaire = this.formBuilder.group({
items: this.formBuilder.array([this.createItem()])
});}
createItem(): FormGroup {
return this.formBuilder.group({
sno: ['',Validators.required],
question:['',Validators.required],
option1: ['',Validators.required],
option2: ['',Validators.required],
option3: ['',Validators.required],
option4: ['',Validators.required],
option5: ['',Validators.required]
});}
addItem(): void {
this.items = this.questionnaire.get('items') as FormArray;
this.items.push(this.createItem());
}}
上收到错误:
Type' FormGroup'不能分配给类型的参数 '串'
this.postDataIntoDB.storeData(this.questionnaire)