This repository has been archived by the owner on Apr 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't fallback to default mapping when property is ignored
Resolves #81
- Loading branch information
1 parent
837332b
commit e32a184
Showing
3 changed files
with
44 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#if !NETSTANDARD1_3 | ||
using System; | ||
using System.Globalization; | ||
using System.Reflection; | ||
|
||
namespace Dapper.FluentMap.TypeMaps | ||
{ | ||
internal class IgnoredPropertyInfo : PropertyInfo | ||
{ | ||
public override Type PropertyType => throw new NotImplementedException(); | ||
public override PropertyAttributes Attributes => throw new NotImplementedException(); | ||
public override bool CanRead => throw new NotImplementedException(); | ||
public override bool CanWrite => throw new NotImplementedException(); | ||
public override string Name => throw new NotImplementedException(); | ||
public override Type DeclaringType => throw new NotImplementedException(); | ||
public override ParameterInfo[] GetIndexParameters() => throw new NotImplementedException(); | ||
public override Type ReflectedType => throw new NotImplementedException(); | ||
public override MethodInfo[] GetAccessors(bool nonPublic) => throw new NotImplementedException(); | ||
public override object[] GetCustomAttributes(bool inherit) => throw new NotImplementedException(); | ||
public override object[] GetCustomAttributes(Type attributeType, bool inherit) => throw new NotImplementedException(); | ||
public override MethodInfo GetGetMethod(bool nonPublic) => throw new NotImplementedException(); | ||
public override MethodInfo GetSetMethod(bool nonPublic) => throw new NotImplementedException(); | ||
public override bool IsDefined(Type attributeType, bool inherit) => throw new NotImplementedException(); | ||
public override object GetValue(object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) => throw new NotImplementedException(); | ||
public override void SetValue(object obj, object value, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture) => throw new NotImplementedException(); | ||
} | ||
} | ||
#endif |
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