示例#1
0
		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);
     }
 }
示例#4
0
 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);
 }
示例#7
0
 public void Access(Accessor accessor)
 {
     accessorMapper.Access(accessor);
 }