forked from OData/RESTier
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b83c4c8
commit 997269d
Showing
3 changed files
with
36 additions
and
27 deletions.
There are no files selected for viewing
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
18 changes: 13 additions & 5 deletions
18
src/Microsoft.Restier.Publishers.OData/Model/PropertyAttributes.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace Microsoft.Restier.Publishers.OData | ||
{ | ||
internal class PropertyAttributes | ||
[Flags] | ||
internal enum PropertyAttributes | ||
{ | ||
/// <summary> | ||
/// No flag is set for the property | ||
/// </summary> | ||
None = 0x0, | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the property should be ignored during update | ||
/// </summary> | ||
public bool IgnoreForUpdate { get; set; } | ||
IgnoreForUpdate = 0x1, | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the property should be ignored during creation | ||
/// </summary> | ||
public bool IgnoreForCreation { get; set; } | ||
IgnoreForCreation = 0x2, | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether there is permission to read the property | ||
/// </summary> | ||
public bool NoReadPermission { get; set; } | ||
NoReadPermission = 0x4, | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether there is permission to write the property | ||
/// </summary> | ||
public bool NoWritePermission { get; set; } | ||
NoWritePermission = 0x8 | ||
} | ||
} |
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