WCF and Remoting examples posted!

Posts   
 
    
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 05-Feb-2008 11:03:30   

We've uploaded two new examples: a WCF and a remoting example. They're a port of our original Northwind example for winforms and they now use a service instead of directly the DAL. Walaa Atef of our support team worked on the WCF version of example, I did the remoting one. The examples can be found in the customer area -> v2.5 -> Examples section or on the main site -> Examples section.

Enjoy! simple_smile

Frans Bouma | Lead developer LLBLGen Pro
ryancammer
User
Posts: 1
Joined: 08-Feb-2008
# Posted on: 08-Feb-2008 06:37:40   

okay, so let's say that i have a database with 1 table and 1 stored procedure. so i fire up llblgen, select the stored procedures that i want to generate, and.... then what? what do i need to do to generate the wcf proxy? i looked at the documentation, and maybe it's just me (i'm pretty dense), but it's not clear to me...

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 08-Feb-2008 09:32:53   

You don't need to generate any proxy. .NET 2.0 needed webservice proxies being generated etc., but you don't need that. Just define a SERVICE contract, as it's done in the example. CHeck the example, everything you need is in there.

Frans Bouma | Lead developer LLBLGen Pro
netrom
User
Posts: 15
Joined: 03-Jul-2008
# Posted on: 16-Jul-2008 14:12:40   

Hi,

I was just wondering about something. In the file CustomerService.cs from the project SD.LLBLGEN.Pro.Examples.WCF.Service you have a function called

public IEntity2 GetCustomerWithFullOrders(string customerId)

This function is supposed to return a customer entity - CustomersEntity object.

Why is the function not defined as:

public CustomersEntity GetCustomerWithFullOrders(string customerId)

This seems to be the case throughout the examples - also those that returns or receives entity collections.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39771
Joined: 17-Aug-2003
# Posted on: 16-Jul-2008 14:16:54   

It indeed could have been CustomerEntity as well, there's no real reason why it's IEntity2.

Frans Bouma | Lead developer LLBLGen Pro
netrom
User
Posts: 15
Joined: 03-Jul-2008
# Posted on: 17-Jul-2008 09:13:41   

Alright, thanks a lot. I was just checking simple_smile