2 out of 2 rated this helpful - Rate this topic

EntitySetRights Enumeration

An enumeration used to define access rights to data that is deployed by WCF Data Services.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  System.Data.Services
Assembly:  System.Data.Services (in System.Data.Services.dll)
[FlagsAttribute]
public enum EntitySetRights
Member name Description
None Denies all rights to access data.
ReadSingle Authorization to read single data items.
ReadMultiple Authorization to read sets of data.
WriteAppend Authorization to create new data items in data sets.
WriteReplace Authorization to replace data.
WriteDelete Authorization to delete data items from data sets.
WriteMerge Authorization to merge data.
AllRead Authorization to read data.
AllWrite Authorization to write data.
All Authorization to create, read, update, and delete data.

The following example sets read-only access to all data deployed by the AccountingService.

namespace AccountingServiceWebApp
{
    public class AccountingService :
                DataService<DataModel>
    {
        config.SetResourceContainerAccessRule("*", 
                                ResourceContainerRights.AllRead);

    }
}

.NET Framework

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ