NormalQueryReactor问题

时间:2016-01-19 15:59:17

标签: c# class interface

  

错误1' Plus.Database.Adapter.NormalQueryReactor'没有实现接口成员' Plus.Database.Interfaces.IQueryAdapter.GetTable()' C:\ Users \ xintel \ Desktop \ Boon Emu \ Database \ Adapter \ NormalQueryReactor.cs 7 18 Plus Emulator

NormalQueryReactor.cs

using System;

using Plus.Database.Interfaces;

namespace Plus.Database.Adapter
{
    public class NormalQueryReactor : QueryAdapter, IQueryAdapter, IRegularQueryAdapter, IDisposable
    {
        public NormalQueryReactor(IDatabaseClient Client)
            : base(Client)
        {
            base.command = Client.createNewCommand();
        }

        public void Dispose()
        {
            base.command.Dispose();
            base.client.reportDone();
            GC.SuppressFinalize(this);
        }
    }
}

有人可以解释为什么会这样,以及如何解决。

1 个答案:

答案 0 :(得分:2)

错误消息非常明确。回顾一下:package simple; import java.net.URL; import java.util.ResourceBundle; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class SimpleController implements Initializable { @FXML // fx:id="myButton" private Button myButton; // Value injected by FXMLLoader @Override // This method is called by the FXMLLoader when initialization is complete public void initialize(URL fxmlFileLocation, ResourceBundle resources) { assert myButton != null : "fx:id=\"myButton\" was not injected: check your FXML file 'simple.fxml'."; // initialize your logic here: all @FXML variables will have been injected myButton.setOnAction(new EventHandler<ActionEvent>() { @Override public void handle(ActionEvent event) { System.out.println("That was easy, wasn't it?"); } }); } } 声明您尚未在IQueryAdapter课程中实施的方法GetTable()。您需要为从您继承的接口中声明的所有方法提供方法实现。你错过了这个。