Print Page | Close Window

LLBLGen Pro

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2377
Printed Date: 01-Feb-2026 at 11:29pm


Topic: LLBLGen Pro
Posted By: indy7
Subject: LLBLGen Pro
Date Posted: 15-Dec-2010 at 7:21am
Has anybody any experience in using LLBL GenPro (instead of Entity Framework) with DevForce Silverlight?
I would appreciate any advice or tip.



Replies:
Posted By: smi-mark
Date Posted: 16-Dec-2010 at 11:27am
I don't think you'll get a very favorable answer, unless you can wrap it using POCO (Plain old com objects).

For more information, check this article:

http://drc.ideablade.com/xwiki/bin/view/Documentation/POCOSupportInDevForce

Edit: Interesting, I see that LLBL GenPro emits an EDMX file. Perhaps someone at IdeaBlade can elaborate further then.


Posted By: smi-mark
Date Posted: 16-Dec-2010 at 12:31pm
Since it can emit an EDMX, it can work with DevForce. I have gotten a basic project working with it. Since you can't work with the EF model in the EF designer, I had to add a couple bits to the raw xml.

I changed:

<Schema Namespace="TestModel" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
        <EntityContainer Name="TestEntities">

to:

<Schema Namespace="TestModel" Alias="Self" xmlns="http://schemas.microsoft.com/ado/2008/09/edm" xmlns:ib10="http://www.ideablade.com/edm/2010">
        <EntityContainer Name="TestEntities" ib10:GenerateDeveloperClasses="true" ib10:DevForceEnabled="true">

Then resaved the edmx, and DevForce generated the developer classes :)

I did however get this error:

DevForce requires that foreign key columns be included in the model. This must be set when the EDMX is first created. If you are upgrading from DevForce 2009, you cannot use the old model and should recreate it using the Entity Framework for .NET 4.0.  The following associations were not set up with foreign key associations enabled:

This I'm sure can be fixed in a flag from LLBL.




Print Page | Close Window