SalesInvoiceFactory does not contain definition for Create‏

SUGGESTED

I would like to ask why I am getting the above error when using the following for integrating with Sage SDK:

sales_invoice_factory = Company.Factories.SalesInvoiceFactory;
SalesInvoice invoice = sales_invoice_factory.Create();