ADo.net Data service RRS feed

  • Question

  • I have two data model and use it in single ado.net service. how to implement it and pass the model name in ado.net data service. the code behnd of data service accept the parameter and instantiate the right model.
    Tuesday, May 18, 2010 10:46 AM


  • Hi,

    Could you please describe what you want to do in a little bit more detail?

    Few points which will be interesting:

    - What kind of provider do you use? (EF, Reflection, Custom provider... I assume it's EF)

    - The two models you have, are they using the same metadata, and just differ in actual data, or are they actually different completely (different entities, properties and so on)?

    - What does it mean when you say "parameter"? Is this based on some kind of parameter in the request URL, or is this a configuration thing?

    - Do you need the service to expose the two models (somehow) from the same URL? Or would it be enough to simply host to services, one for each model?


    Vitek Karas [MSFT]
    Tuesday, May 18, 2010 12:09 PM