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.
Add computed and immutable annotation support
- Loading branch information
1 parent
a6db7ca
commit b83c4c8
Showing
14 changed files
with
4,119 additions
and
1,362 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
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
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
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
28 changes: 28 additions & 0 deletions
28
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. See License.txt in the project root for license information. | ||
|
||
namespace Microsoft.Restier.Publishers.OData | ||
{ | ||
internal class PropertyAttributes | ||
{ | ||
/// <summary> | ||
/// Gets or sets a value indicating whether the property should be ignored during update | ||
/// </summary> | ||
public bool IgnoreForUpdate { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether the property should be ignored during creation | ||
/// </summary> | ||
public bool IgnoreForCreation { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether there is permission to read the property | ||
/// </summary> | ||
public bool NoReadPermission { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether there is permission to write the property | ||
/// </summary> | ||
public bool NoWritePermission { get; set; } | ||
} | ||
} |
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
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
Oops, something went wrong.