unity mvvm sql connection code first

    General discussion

  • First of all, I have struggling with this idea

    I am trying to make a silverlight code first model with unity and sql then use mvvm

    I would prefer to use my connection string inside my database context class

    Is this the best way to handle this?

    The problem with this approach is I do not seem alot of examples

    here is a example of using wcf ria code first

    Is this the best way to handle This?  



    Monday, August 29, 2011 3:17 PM


  • Hi Billsm.

    DataContext is control by Dependency Injection(DI). EF 4.1 Expose this Interface Database.DefaultConnectionFactory.


    You can use it in code.

    Tuesday, August 30, 2011 5:50 AM

All replies