コード例 #1
0
ファイル: AccessorHelper.cs プロジェクト: matteomigliore/HSDK
		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);
			}
		}
コード例 #2
0
		protected virtual void MemberReadOnlyAccessor(IModelInspector modelInspector, PropertyPath member, IAccessorPropertyMapper propertyCustomizer)
		{
			if (MatchReadOnlyProperty(member.LocalMember))
			{
				propertyCustomizer.Access(Accessor.ReadOnly);
			}
		}
コード例 #3
0
 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);
 }
コード例 #5
0
		protected virtual void MemberToFieldAccessor(IModelInspector modelInspector, PropertyPath member, IAccessorPropertyMapper propertyCustomizer)
		{
			if (MatchPropertyToField(member.LocalMember))
			{
				propertyCustomizer.Access(Accessor.Field);
			}
		}
コード例 #6
0
 public void Access(Accessor accessor)
 {
     entityPropertyMapper.Access(accessor);
 }
コード例 #7
0
 public void Access(Accessor accessor)
 {
     accessorMapper.Access(accessor);
 }