I have created a method directive with SalesOrder being the Service Name and Update being the method. In my directive I have some custom code and am looking up a record from the Customer table using the Customer Number for the sales order by the folowing code and then doing a GetByID().
var customerSvc = Ice.Assemblies.ServiceRenderer.GetService<Erp.Contracts.CustomerSvcContract>(Db);
using (System.Transactions.TransactionScope txscope = IceDataContext.CreateDefaultTransactionScope())
{
var customer = customerSvc.GetByID(CustomerNumber);
In order to do this, I have to add a reference as shown
but when I enable the directive and try to save it I get the following stuff.
There is at least one compilation error.
CustomizationAdapter.cs(783,105): error CS0433: The type âETCAddrValidationTablesetâ exists in both âErp.Contracts.BO.Customer, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â and âErp.Contracts.BO.SalesOrder, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â
CustomizationAdapter.cs(788,108): error CS0433: The type âETCAddrValidationTablesetâ exists in both âErp.Contracts.BO.Customer, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â and âErp.Contracts.BO.SalesOrder, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â
CustomizationAdapter.cs(793,30): error CS0433: The type âETCAddrValidationTablesetâ exists in both âErp.Contracts.BO.Customer, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â and âErp.Contracts.BO.SalesOrder, Version=11.3.100.0, Culture=neutral, PublicKeyToken=5d3fa3c7105d7992â
CustomizationAdapter.cs(9,142): error CS0738: âSalesOrderSvcCustomizationâ does not implement interface member âSalesOrderSvcContract.ETCValidateAddress(bool, int, int, int, out bool, out bool, out string, out bool)â. âSalesOrderSvcCustomization.ETCValidateAddress(bool, int, int, int, out bool, out bool, out string, out bool)â cannot implement âSalesOrderSvcContract.ETCValidateAddress(bool, int, int, int, out bool, out bool, out string, out bool)â because it does not have the matching return type of âETCAddrValidationTablesetâ.
CustomizationAdapter.cs(9,142): error CS0535: âSalesOrderSvcCustomizationâ does not implement interface member âSalesOrderSvcContract.ETCAfterAddressValidationOTS(ref SalesOrderTableset, ETCAddrValidationTableset, int)â
CustomizationAdapter.cs(9,142): error CS0535: âSalesOrderSvcCustomizationâ does not implement interface member âSalesOrderSvcContract.ETCAfterRelAddressValidationOTS(ref SalesOrderTableset, ETCAddrValidationTableset, int, int, int)â
Have any of you seen this and if so, how did you resolve it? If I remove the reference, I donât get this error so it has something to do with that.
