wcf data services - String ID in OData -


is there way use string ids in odata?

for example, if have user entity, have ids this:

"users/1" "users/123" etc... 

am limited protocol or cannot make work wcf?

for now, m facing problem entity id:

/dataservice.svc/users('users/1') 

as raises error.

this blog post discusses @ length - in general it's considered not idea there security implications.

http://blogs.msdn.com/b/peter_qian/archive/2010/05/25/using-wcf-data-service-with-restricted-characrters-as-keys.aspx


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -