Can a DomainService class talk to any kind of DAL in Dynamic Data?

Last post 04-21-2009 7:27 AM by sjnaughton. 1 replies.

Sort Posts:

  • Can a DomainService class talk to any kind of DAL in Dynamic Data?

    04-21-2009, 4:04 AM

    Hi,

    Im still working on how to work on a custom data access layer for Dynamic Data Site, and i downloaded the Dynamic Data 4.0 Preview 3 and played around with it.im so interested in it.Smile

    mean time i was searching some other ways and came across with this nice post http://blogs.msdn.com/davidebb/archive/2008/06/18/using-asp-net-dynamic-data-with-objectdatasource.aspx (thank you sir..for this nice post!!) that demos how to use ObjectDataContext which talks to your business layer class. (this approch also states there are limitations where it can cater only the DataContext and ObjectContext and should support LINQ)

    So im interested to know what are the major changes we see in DomainDataSource apart from it can talk to DomainService class.

    Also, if we were to have a completly different DAL(non-ObjectContext and non-DataContext) with DataReaders and etc... can we build up a full scaffolding site just by registering the DomainService class with the Dynamic Data engin? I feel inorder to make dynamic data scaffolding we need to have a ObjectContext or a DataContext in place...  what if we dont have either, how will that be possible?

    Thank you very much,

    Dilrukshi

  • Re: Can a DomainService class talk to any kind of DAL in Dynamic Data?

    04-21-2009, 7:27 AM
    Answer
    • Star
      12,372 point Star
    • sjnaughton
    • Member since 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,574
    • TrustedFriends-MVPs

    Have a look at Nikhil Kothari's video at MIX09 where he put DomainService through it's paces with Silverlight and uses other things than Linq and DataContext.

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
Page 1 of 1 (2 items)