Skip to content

Instantly share code, notes, and snippets.

@AsishP
Last active November 12, 2017 09:43
Show Gist options
  • Save AsishP/31779bd9e4734e10842cc5be69d26927 to your computer and use it in GitHub Desktop.
Save AsishP/31779bd9e4734e10842cc5be69d26927 to your computer and use it in GitHub Desktop.
public static void InitializeService(DataServiceConfiguration config)
{
// TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc.
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead);
config.DataServiceBehavior.MaxProtocolVersion = DataServiceProtocolVersion.V3;
config.UseVerboseErrors = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment