There is a database 1C. It is provided with RESTful access via the OData protocol. I am writing a client in C #. Connect to this service through the "Add a link to the service."
The data request goes bang through DataServiceContext (created automatically). I am trying to add a client to the "Catalog_Partner" table.
var context = new CRM_2Demo.EnterpriseV8(odataUri) { Credentials = odataCredentials }; var newClient = new CRM_2Demo.Catalog_Партнеры { CRM_Имя = "Влад" }; context.AddToCatalog_Партнеры(newClient); DataServiceResponse response = context.SaveChanges();
An entry to the database is added, however the "CRM_Name" field is still empty. Why?
PS I have a suspicion that this is due to the fact that classes have Cyrillic names, but Visual Studio generated all the classes to work with the service without problems ... I also tried to initialize other fields but they all remain empty.