User to Geo Relation through API

Hi Guys ! I’m getting Trouble In setting user to Geo Relation. (Please Help)
i’m trying to save users location and then update the user property to establish the relation between user and location object.
every thing work fine but issue is when i see the backendless console relation is not established in user’s “Locations” Column .
Here is the Sample code :
private void saveLocation(final BackendlessUser user, double latitude, double longitude) {
List catagory=new ArrayList<String>();
catagory.add(“workshop_locations”);
Map meta=new HashMap<String,Object>();
meta.put(“Workshop_name”,“abc”);
meta.put(“Phone_no”,“123”);
///////////////// Create //////////////////////////////////////////
/////////////////GeoPoint/////////////////////////////////////////
GeoPoint geoPoint=new GeoPoint(latitude,longitude);
geoPoint.setCategories(catagory);
geoPoint.setMetadata(meta);
////////////////////////////Call API///////////////////////////////////
//////////////////////////////////////////////////////////////////////
Backendless.Geo.savePoint(geoPoint ,new AsyncCallback<GeoPoint>() {
@Override
public void handleResponse(GeoPoint response) {
user.setProperty(“locations”,response);

updateUser(user);
}
@Override
public void handleFault(BackendlessFault fault) {
Log.i(“LoactionError”,fault.getMessage());
}
});

}
then update the user :
private void updateUser(BackendlessUser user){
Backendless.UserService.update(user, new AsyncCallback<BackendlessUser>() {
@Override
public void handleResponse(BackendlessUser backendlessUser) {
Toast.makeText(getActivity(), “user is updated”, Toast.LENGTH_SHORT).show();

}
@Override
public void handleFault(BackendlessFault backendlessFault) {
log.i(“UserUpdateError”,fault.getMessage());
}
});
}
Every thing works fine but when i see Backendless console then there is no relation established between user and location but location is saved . (Screen shot is attached)

you can not tie Backendless user and geo point by saving user object. You have to use relation api https://backendless.com/docs/android/doc.html#data_relations_with_geo_points

https://backendless.com/docs/android/doc.html#data_relations

Thanks Sergey Kukurudzyak .

Hello Sergey i am building a windows phone app and there isn’t a setRelation method in .net.
(Backendless.Data.of( TaxiCab.class ).setRelation( taxi, “location:GeoPoint:1”, location ):wink:

Of course there is. Make sure you are using the latest build of the library for .net:
https://github.com/Backendless/.NET-SDK/tree/4.0/Backendless/Bin/NET_40

Windows phone Silverlight 8.1 application.

Hello Mark i try to add the latest sdk for .net and it throws me this error…
(windows phone silverlight 8.1)

A reference to a higher version or incompatible assembly cannot be added to the project.

Please help me.Thanks in advance.