New Posts New Posts RSS Feed: .Include() ?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

.Include() ?

 Post Reply Post Reply
Author
jsobell View Drop Down
Groupie
Groupie
Avatar

Joined: 02-Apr-2009
Location: Australia
Posts: 80
Post Options Post Options   Quote jsobell Quote  Post ReplyReply Direct Link To This Post Topic: .Include() ?
    Posted: 05-May-2010 at 12:43am
Just jumped back here after using RIA for the last 12 months...

Didn't there used to be a .INCLUDE() on the EntityQuery?
Has this been replaced with the AddIncludePaths, and if so, where is it documented?

Cheers,
 Jason
Back to Top
ting View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 27-Mar-2009
Location: San Francisco
Posts: 427
Post Options Post Options   Quote ting Quote  Post ReplyReply Direct Link To This Post Posted: 05-May-2010 at 12:44pm

There are two other Include methods in addition to AddIncludePaths:
  .Include is an extension method on IEntityQuery<T> that takes a lambda. Expression<Func<T, Object>>
  .Include is an extension method on IEntityQuery that takes a property path.

If you're not seeing the extension methods, try casting to an IEntityQuery<T> first.
 
 
Back to Top
WardBell View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 31-Mar-2009
Location: Emeryville, CA,
Posts: 338
Post Options Post Options   Quote WardBell Quote  Post ReplyReply Direct Link To This Post Posted: 05-May-2010 at 2:33pm
Welcome back, Jason!
 
Would you mind commenting on your journey with RIA Services ... and what brought you home to us?
 
Feel free to email me directly if you prefer to answer "off forum": AskWard AT IdeaBlade DOT com. Happy to talk by phone to.
Back to Top
iosub View Drop Down
Newbie
Newbie


Joined: 20-Apr-2010
Location: Spain
Posts: 24
Post Options Post Options   Quote iosub Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2010 at 7:40am
Hi
 
I'm very interested on "your journey with RIA Services" and why are you back to Devforce :-)
 
Thanks!
 
Back to Top
jsobell View Drop Down
Groupie
Groupie
Avatar

Joined: 02-Apr-2009
Location: Australia
Posts: 80
Post Options Post Options   Quote jsobell Quote  Post ReplyReply Direct Link To This Post Posted: 06-May-2010 at 3:14pm
In a nutshell (and I responded at length directly to Ward) I never wanted to stop using DF, but I employed a consultant to code the core of our system while I was working at another client site, and he wanted to use RIA as it was an environment he was already familiar with.
In hindsight, given that he failed to produce anything we could use, we could have swapped back to DF when we restarted the project, but when the contractor we employed explained that he had been using RIA for over a year we agreed to stick with that (after all, it's his solution, so we had to make sure he was comfortable).
 
I don't think WCF RIA has any particular problems, and these two system are almost identical from a "Microsoft Twitter Client" project point of view, but once you start thinking about more complex data issues, per-entity security, and (something I consider very important) a way of providing 'unit of work' through synchronising data changes between Data Domain Context's without requerying the whole set from the database, DF becomes much more usable.
Add the disconnected data cache (makes mocking a doddle), and it starts to look very attractive.
 
The DF method of documentation using PDFs backed with example projects is an excellent idea and one that developers can easily relate to, and the quick responses in the forum are much better than posting a WCF RIA question on a news group where most of the responses are "Why do you want to do that? You should redesign your database...", or Googling to find someone somewhere blogging on the weird behaviour you're experiencing in RIA :)
 
Will we actually convert our project back from WCF RIA to DF2010? Well I did the total conversion as a test in a day (including coming back to speed with DF after almost 12 months), so I know it is a relatively simple task at any time.
I'll continue experimenting with it in a branched build, and will probably toggle us back the moment we find something major that WCF RIA struggles with, but it is a retraining issue for our contractor, so I'm loath to interfere with hs creative flow at this stage :)
 
In summary, starting a new project I would definitely use and recommend DevForce2010.
I consider RIA to be Microsoft's solution for the general public, providing a safe, predicatable, and bottled solution.
I think of DevForce as being a programmers solution, matching all of RIA's features and simplicity, but scoped to include a more technical audience; addressing requirements beyond RIA's scope that most people don't realise exist until they are 95% of the way through their projects.
 
Cheers,
 Jason
Back to Top
DavidKozikowski View Drop Down
Groupie
Groupie
Avatar

Joined: 02-Feb-2010
Location: Aurora, IN
Posts: 59
Post Options Post Options   Quote DavidKozikowski Quote  Post ReplyReply Direct Link To This Post Posted: 07-May-2010 at 5:57am
Sounds like you need a Contractor that knows DF :)
 
Um...
Back to Top
iosub View Drop Down
Newbie
Newbie


Joined: 20-Apr-2010
Location: Spain
Posts: 24
Post Options Post Options   Quote iosub Quote  Post ReplyReply Direct Link To This Post Posted: 07-May-2010 at 9:31am
Originally posted by jsobell

In a nutshell (and I responded at length directly to Ward) I never wanted to stop using DF, but I employed a consultant to code the core of our system while I was working at another client site, and he wanted to use RIA as it was an environment he was already familiar with.
In hindsight, given that he failed to produce anything we could use, we could have swapped back to DF when we restarted the project, but when the contractor we employed explained that he had been using RIA for over a year we agreed to stick with that (after all, it's his solution, so we had to make sure he was comfortable).
 
I don't think WCF RIA has any particular problems, and these two system are almost identical from a "Microsoft Twitter Client" project point of view, but once you start thinking about more complex data issues, per-entity security, and (something I consider very important) a way of providing 'unit of work' through synchronising data changes between Data Domain Context's without requerying the whole set from the database, DF becomes much more usable.
Add the disconnected data cache (makes mocking a doddle), and it starts to look very attractive.
 
The DF method of documentation using PDFs backed with example projects is an excellent idea and one that developers can easily relate to, and the quick responses in the forum are much better than posting a WCF RIA question on a news group where most of the responses are "Why do you want to do that? You should redesign your database...", or Googling to find someone somewhere blogging on the weird behaviour you're experiencing in RIA :)
 
Will we actually convert our project back from WCF RIA to DF2010? Well I did the total conversion as a test in a day (including coming back to speed with DF after almost 12 months), so I know it is a relatively simple task at any time.
I'll continue experimenting with it in a branched build, and will probably toggle us back the moment we find something major that WCF RIA struggles with, but it is a retraining issue for our contractor, so I'm loath to interfere with hs creative flow at this stage :)
 
In summary, starting a new project I would definitely use and recommend DevForce2010.
I consider RIA to be Microsoft's solution for the general public, providing a safe, predicatable, and bottled solution.
I think of DevForce as being a programmers solution, matching all of RIA's features and simplicity, but scoped to include a more technical audience; addressing requirements beyond RIA's scope that most people don't realise exist until they are 95% of the way through their projects.
 
Cheers,
 Jason
Thank you so much!!
I will take your coments :-)
 
Iosu
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down