public static void SetAccessor(MemberInfoMetadata member, IAccessorPropertyMapper m) { if (member.Accessor == Accessors.Field) { m.Access(AccessorHelper.Translate(member.Accessor)); } if (member.MemberType == MemberTypes.Property) { m.Access(Accessor.Property); } }
protected virtual void MemberReadOnlyAccessor(IModelInspector modelInspector, PropertyPath member, IAccessorPropertyMapper propertyCustomizer) { if (MatchReadOnlyProperty(member.LocalMember)) { propertyCustomizer.Access(Accessor.ReadOnly); } }
protected virtual void MemberNoSetterToField(IModelInspector modelInspector, PropertyPath member, IAccessorPropertyMapper propertyCustomizer) { if (MatchNoSetterProperty(member.LocalMember)) { propertyCustomizer.Access(Accessor.NoSetter); } }
public void Access(Accessor accessor) { accessorPropertyMapper.Access(accessor); }
protected virtual void MemberToFieldAccessor(IModelInspector modelInspector, PropertyPath member, IAccessorPropertyMapper propertyCustomizer) { if (MatchPropertyToField(member.LocalMember)) { propertyCustomizer.Access(Accessor.Field); } }
public void Access(Accessor accessor) { entityPropertyMapper.Access(accessor); }
public void Access(Accessor accessor) { accessorMapper.Access(accessor); }