Last active
August 29, 2015 14:01
-
-
Save xerardoo/29bfec5a3da2a918ea10 to your computer and use it in GitHub Desktop.
MetodoClientes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public IEnumerable<Cliente> GetClientes() | |
{ | |
List<Cliente> AllClientes = new List<Cliente>(); | |
XPCollection<Cliente> clientes = new XPCollection<Cliente>(XpoDefault.Session); | |
foreach (var cliente in clientes) | |
{ | |
AllClientes.Add(new Cliente | |
{ | |
Oid = cliente.Oid, | |
nombre = cliente.nombre, | |
apPaterno = cliente.apPaterno, | |
apMaterno = cliente.apMaterno, | |
rfc = cliente.rfc, | |
direccion = cliente.direccion, | |
telefono = cliente.telefono | |
}); | |
} | |
return AllClientes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment