LLBL Project with Silverlight

Posts   
 
    
Suresh
User
Posts: 6
Joined: 19-Feb-2010
# Posted on: 29-Mar-2010 11:57:29   

Hi,

I am working on LLBL gen project Data layer in my ASP.NET(C#).

I want to migrate this application to silverlight 3 or above.

Now I have created the sample silverlight application, Sample WCF service for integrating the LLBL data access layer methods.

(I have one class in LLBL data layer, for database operation (insert/delete/select).

How / what type of datatype needs pass the entity values to WCF and populates in Silverlight.

Previously I used to take direct entity declaration (refer the LLBL dll ), now it is not allow to add in Silverlight project.

Please provide me right approach or provide me samples or Proof of concept.

Thanks Suresh.S

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 29-Mar-2010 12:08:45   

You should use DTO's. Please check the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=17082

Suresh
User
Posts: 6
Joined: 19-Feb-2010
# Posted on: 30-Mar-2010 08:35:58   

Walaa wrote:

You should use DTO's. Please check the following thread: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=17082

Hi Walaa,

Thanks for the URL. I could able to check the url.

Is any sample application ( Proof of concept ) is available. It will help me to understand properly on integration of Silverlight Application and LLBL gen pro data layer.

Thanks,

Suresh.S

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 30-Mar-2010 12:06:03   

We don't have a Silverlight sample application.

But the theory is simple, just use a Data Transfer Objects instead of the Entity Objects, in other words just light weight objects.

Please search the forum for "DTO" without the qoutes and you'll find some threads with templates to use to automatically generate these classes for you.

Suresh
User
Posts: 6
Joined: 19-Feb-2010
# Posted on: 24-May-2010 15:27:54   

Walaa wrote:

We don't have a Silverlight sample application.

But the theory is simple, just use a Data Transfer Objects instead of the Entity Objects, in other words just light weight objects.

Please search the forum for "DTO" without the qoutes and you'll find some threads with templates to use to automatically generate these classes for you.

Thanks for replying.

If I create the DTO objects, it will be almost creation of entity classes and methods (which repeats the work of LLBL gen pro).

I don't know any generation tool available.

Please suggest..

Thanks suresh

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 24-May-2010 16:08:07   

There are some DTO templates available in the Fourms, so you will just use these to generate the classes for you, and they will only have properties for the entity fields, and methods needed to convert to and from the entity class, and maybe some serilaization methods.