public virtual Net.Vpc.Upa.Impl.Util.EntityBeanAttribute GetAttrAdapter(string field) { Net.Vpc.Upa.Impl.Util.EntityBeanAttribute r = Net.Vpc.Upa.Impl.FwkConvertUtils.GetMapValue <string, Net.Vpc.Upa.Impl.Util.EntityBeanAttribute>(fields, field); if (r != null) { return(r); } Net.Vpc.Upa.Field f = entity.GetField(field); Net.Vpc.Upa.PropertyAccessType propertyAccessType = f.GetPropertyAccessType(); if (propertyAccessType == default(Net.Vpc.Upa.PropertyAccessType)) { propertyAccessType = Net.Vpc.Upa.PropertyAccessType.PROPERTY; } if (propertyAccessType == Net.Vpc.Upa.PropertyAccessType.FIELD) { System.Reflection.FieldInfo ff = Net.Vpc.Upa.Impl.Util.PlatformUtils.FindField(entity.GetEntityType(), f.GetName(), Net.Vpc.Upa.Impl.Util.BeanFieldFilter.INSTANCE); if (ff != null) { r = new Net.Vpc.Upa.Impl.Util.EntityBeanFieldAttribute(this, ff, entity.GetEntityType()); fields[field] = r; } } else { Net.Vpc.Upa.Impl.Util.EntityBeanGetterSetterAttribute a = new Net.Vpc.Upa.Impl.Util.EntityBeanGetterSetterAttribute(this, field, f.GetDataType().GetPlatformType(), entity.GetEntityType()); if (a.IsValid()) { r = a; fields[field] = r; } } return(r); }
public virtual Net.Vpc.Upa.DefaultFieldDescriptor SetPropertyAccessType(Net.Vpc.Upa.PropertyAccessType propertyAccessType) { this.propertyAccessType = propertyAccessType; return(this); }
public virtual void SetPropertyAccessType(Net.Vpc.Upa.PropertyAccessType accessType) { this.accessType = accessType; }