Data Model (ADO.NET Data Services Framework)
This page is specific to:.NET Framework Version:3.54.0
Data Model (ADO.NET Data Services Framework)

The content in this topic has been moved. For more information, see Data Services Providers (ADO.NET Data Services).

Community Content

error in code example
Added by:Nostromo
the member OrderKeyID of OrderKey class (and other class) are
decorate with the wrong DataWebKeyAttribute instead of

DataServiceKeyAttribute

Re: error in code example
Added by:DanVladut
DataWebKeyAttribute was initially used in ASP.Net 3.5 extensions, after VS 2008 SP1 was released DataServiceKeyAttribute replaced it but it is wrongly used in the example above .
The code should be something like:

[DataServiceKey("OrderKey")]
public class Order
{
...
//no attribute here
public int OrderKey
{
get { return _ID; }
}
...
}
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View