-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from FrankieTF/Update-DotNetHowToSecurityTrimming
Update DotNetHowToSecurityTrimming
- Loading branch information
Showing
5 changed files
with
124 additions
and
73 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
18 changes: 5 additions & 13 deletions
18
DotNetHowToSecurityTrimming/DotNetHowToSecurityTrimming/SecuredFiles.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,22 +1,14 @@ | ||
using System; | ||
using Microsoft.Azure.Search; | ||
using Microsoft.Azure.Search.Models; | ||
using Microsoft.Spatial; | ||
using Newtonsoft.Json; | ||
using Azure.Search.Documents.Indexes; | ||
using System.Text.Json.Serialization; | ||
|
||
// The SerializePropertyNamesAsCamelCase attribute is defined in the Azure Search .NET SDK. | ||
// It ensures that Pascal-case property names in the model class are mapped to camel-case | ||
// field names in the index. | ||
[SerializePropertyNamesAsCamelCase] | ||
public partial class SecuredFiles | ||
{ | ||
[System.ComponentModel.DataAnnotations.Key] | ||
[IsFilterable] | ||
[SimpleField(IsKey = true, IsFilterable = true)] | ||
public string FileId { get; set; } | ||
|
||
[IsFilterable, IsSearchable, IsSortable] | ||
[SimpleField(IsFilterable = true, IsSortable = true, IsFacetable = true)] | ||
public string Name { get; set; } | ||
|
||
[IsFilterable] | ||
[SimpleField(IsFilterable = true)] | ||
public string[] GroupIds { get; set; } | ||
} |
13 changes: 12 additions & 1 deletion
13
DotNetHowToSecurityTrimming/DotNetHowToSecurityTrimming/packages.config
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,18 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Azure.Core" version="1.4.1" targetFramework="net461" /> | ||
<package id="Azure.Search.Documents" version="11.1.1" targetFramework="net461" /> | ||
<package id="Emgu.CV" version="3.2.0.2721" targetFramework="net461" /> | ||
<package id="Microsoft.Azure.Search" version="4.0.1-preview" targetFramework="net461" /> | ||
<package id="Microsoft.Bcl.AsyncInterfaces" version="1.0.0" targetFramework="net461" /> | ||
<package id="Microsoft.Graph" version="1.5.1" targetFramework="net461" /> | ||
<package id="Microsoft.Graph.Core" version="1.6.1" targetFramework="net461" /> | ||
<package id="Microsoft.Identity.Client" version="1.1.0-preview" targetFramework="net461" /> | ||
<package id="Microsoft.Rest.ClientRuntime" version="2.3.7" targetFramework="net461" /> | ||
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.6" targetFramework="net461" /> | ||
<package id="Microsoft.Spatial" version="7.2.0" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" /> | ||
<package id="System.Buffers" version="4.5.0" targetFramework="net461" /> | ||
<package id="System.Diagnostics.DiagnosticSource" version="4.6.0" targetFramework="net461" /> | ||
<package id="System.Memory" version="4.5.3" targetFramework="net461" /> | ||
<package id="System.Net.Http" version="4.3.1" targetFramework="net461" /> | ||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net461" /> | ||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.6.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Algorithms" version="4.3.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Encoding" version="4.3.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.Primitives" version="4.3.0" targetFramework="net461" /> | ||
<package id="System.Security.Cryptography.X509Certificates" version="4.3.0" targetFramework="net461" /> | ||
<package id="System.Text.Encodings.Web" version="4.6.0" targetFramework="net461" /> | ||
<package id="System.Text.Json" version="4.6.0" targetFramework="net461" /> | ||
<package id="System.Threading.Tasks.Extensions" version="4.5.2" targetFramework="net461" /> | ||
<package id="System.ValueTuple" version="4.5.0" targetFramework="net461" /> | ||
<package id="ZedGraph" version="5.1.5" targetFramework="net461" /> | ||
</packages> |