forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathQueryExtensions.cs
More file actions
32 lines (27 loc) · 1.14 KB
/
Copy pathQueryExtensions.cs
File metadata and controls
32 lines (27 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.Reflection;
using JetBrains.Annotations;
using Microsoft.Data.Entity.Internal;
using Microsoft.Data.Entity.Storage;
namespace Microsoft.Data.Entity.Query
{
public static class QueryExtensions
{
public static readonly MethodInfo PropertyMethodInfo
= typeof(QueryExtensions).GetTypeInfo().GetDeclaredMethod(nameof(Property));
public static TProperty Property<TProperty>(
[NotNull] this object entity, [NotNull] string propertyName)
{
throw new InvalidOperationException(Strings.PropertyExtensionInvoked);
}
public static readonly MethodInfo ValueBufferPropertyMethodInfo
= typeof(QueryExtensions).GetTypeInfo().GetDeclaredMethod(nameof(ValueBufferProperty));
[UsedImplicitly]
private static TProperty ValueBufferProperty<TProperty>(ValueBuffer valueBuffer, string propertyName)
{
throw new NotImplementedException();
}
}
}