.Net 3.5 MVC

Posts   
 
    
MattE avatar
MattE
User
Posts: 77
Joined: 11-Sep-2007
# Posted on: 19-Feb-2008 13:39:31   

Is there a proof of concept of using LLBLGen in this scenario?

I starting having a tinker trying to plug the LLBGen entities in instead of the LINQ To SQL classes, but got diverted

As I understand it any element of the MVC should be pluggable

jmeckley
User
Posts: 403
Joined: 05-Jul-2006
# Posted on: 19-Feb-2008 14:34:55   

it would work the same as a linq example. if the linq example looks like this: not too fimilar with linq, so consider this sudo code.

public void MyAction()
{
     var foos = from foo select *;
     ViewEngine.Load("foo.aspx", foos);
}

then the llbl version would look like this

public void MyAction()
{
     EntityCollection<FooEntity> foos = new EntityCollection<FooEntity>();
     new DataAccessAdapter().FetchCollection(foos, null);
     ViewEngine.Load("foo.aspx", foos);
}

what exactly are you stuck on?

MattE avatar
MattE
User
Posts: 77
Joined: 11-Sep-2007
# Posted on: 20-Feb-2008 10:25:30   

Thanks jmeckley.

Thats more or less what I thought. I was wondering who might have working examples.

The 'Models' section would contain a number of llblgen entities collections etc, and we simply pass the entititycollection / entity as the pages objectdata.