Skip to content

Instantly share code, notes, and snippets.

@xerardoo
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xerardoo/29bfec5a3da2a918ea10 to your computer and use it in GitHub Desktop.
Save xerardoo/29bfec5a3da2a918ea10 to your computer and use it in GitHub Desktop.
MetodoClientes
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