1
Vote

Error: 'Kerosene.ORM.Direct.Concrete.KLinkDirectBase' does not implement interface member 'Kerosene.ORM.Direct.IKLinkDirect.Query<T1>()'

description

Hi,

I want to display the result in a grid.
I added a winform into Kerosense.ORM.Test.Direct project and with the following code under a menu click event:

private void runToolStripMenuItem_Click(object sender, EventArgs e)
    {
        var link = Kerosene.ORM.Direct.KLinkDirect.Create("KeroseneDB"); Console.WriteLine("\n> Link = {0}", link);
        link.AddTransformer<CalendarDate>(x => CalendarDate.ToDateTime(x));
        link.AddTransformer<ClockTime>(x => x.ToString());

        Test_Maps_Complex.RegisterMaps(link);
        var cmd = link.Query<Kerosene.ORM.Test.Test_Maps_Complex.Employee>();
        //Test_Generic_Link.ExecuteAll(link);
        //Test_Maps_Simple.ExecuteAll(link);
       // Test_Maps_Complex.ExecuteAll(glink);

        bindingSource1.DataSource = cmd;
    }
However, I keep getting the following error during compilation:

Error 1 'Kerosene.ORM.Direct.Concrete.KLinkDirectBase' does not implement interface member 'Kerosene.ORM.Direct.IKLinkDirect.Query<T1>()' D:\Personal\Pandora\Kerosene.6.0\Kerosene.ORM\Direct\Concrete\KLinkDirect.Base.cs 13 15 Kerosene.ORM

May I know how to rectify this?
Btw, is there any example on winform?

comments