Calling WCF service to reads from a DataBase and returns generic lists of custom objects to the client.

 _
Public Interface IRepositorio

 _
Function ListarAlmacen() As List(Of BE.Almacen)

End Interface

 _
 _
Public Class Repositorio
Implements IRepositorio

Public Function ListarAlmacen() As List(Of BE.Almacen) Implements IRepositorio.ListarAlmacen
Dim result As List(Of BE.Almacen)
result = BL.Repositorio.Almacen.listar()
Return result
End Function

End Class

'some code ...

Dim oAlmacenWCF As New repositorio.RepositorioClient
Dim oListaAlmacenBE As List(Of BE.Almacen)
oListaItemAlmacenBE = oAlmacenWCF.ListarAlmacen(item_id)

'some code












































0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.