Created
January 29, 2018 03:38
-
-
Save AsishP/7e6553273ab16fc1fc9b5d56019b3e9d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void InitializeService(DataServiceConfiguration config) | |
{ | |
// TODO: set rules to indicate which entity sets and service operations are visible, updatable, etc. | |
// Examples: | |
config.SetEntitySetAccessRule("*", EntitySetRights.AllRead); | |
// config.SetServiceOperationAccessRule("MyServiceOperation", ServiceOperationRights.All); | |
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