Exemple #1
0
        private ObservableCollection <com.cairone.odataexample.Localidad> LoadAllLocalidades()
        {
            ObservableCollection <com.cairone.odataexample.Localidad> query = null;

            if (service == null)
            {
                return(query);
            }
            if (!service.IsConnected)
            {
                return(query);
            }

            query = service.LoadEntityItems <com.cairone.odataexample.Localidad>("Localidades");

            return(query);
        }
        private ObservableCollection <com.cairone.odataexample.PrestamoPendiente> LoadAllPrestamos()
        {
            //Pais newPais = null;

            //ObservableCollection <Pais> query = new ObservableCollection<Pais>();
            ObservableCollection <com.cairone.odataexample.PrestamoPendiente> query = null;

            if (service == null)
            {
                return(query);
            }
            if (!service.IsConnected)
            {
                return(query);
            }

            query = service.LoadEntityItems <com.cairone.odataexample.PrestamoPendiente>("PrestamosPendientes");

            //newPais = new Pais() { id = 1, nombre = "Argentina", prefijo = "1234" };
            //query.Add(newPais);

            return(query);
        }
Exemple #3
0
        private ObservableCollection <com.cairone.odataexample.Pais> LoadAllPaises()
        {
            //Pais newPais = null;

            //ObservableCollection <Pais> query = new ObservableCollection<Pais>();
            ObservableCollection <com.cairone.odataexample.Pais> query = null;

            if (service == null)
            {
                return(query);
            }
            if (!service.IsConnected)
            {
                return(query);
            }

            // We need to pass some filters here!!!!!!
            query = service.LoadEntityItems <com.cairone.odataexample.Pais>("Paises");

            //newPais = new Pais() { id = 1, nombre = "Argentina", prefijo = "1234" };
            //query.Add(newPais);

            return(query);
        }