internal virtual bool PropertyIsWritable(string propertyName) { AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName); if (converterEntry == null) { if (this._sessionInfo == null) { return(true); } else { this.InitSchemaUtil(this._sessionInfo); return(this._schemaUtil.AttributeIsWritable(propertyName)); } } else { TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel; if (adapterAccessLevel == TypeAdapterAccess.Write) { return(true); } else { return(adapterAccessLevel == TypeAdapterAccess.ReadWrite); } } }
internal virtual bool PropertyIsReadable(string propertyName) { AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName); if (converterEntry == null) { return(true); } else { TypeAdapterAccess adapterAccessLevel = converterEntry.AdapterAccessLevel; if (adapterAccessLevel == TypeAdapterAccess.Read) { return(true); } else { return(adapterAccessLevel == TypeAdapterAccess.ReadWrite); } } }
internal virtual bool PropertyIsSingleValue(string propertyName) { AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName); if (converterEntry == null) { if (this._sessionInfo == null) { return(false); } else { this.InitSchemaUtil(this._sessionInfo); return(this._schemaUtil.AttributeIsSingleValue(propertyName)); } } else { return(converterEntry.IsSingleValue); } }
internal virtual Type GetPropertyType(string propertyName) { AttributeConverterEntry converterEntry = this.GetConverterEntry(propertyName); if (converterEntry == null) { if (this._sessionInfo == null) { return(typeof(object)); } else { this.InitSchemaUtil(this._sessionInfo); return(this._schemaUtil.GetAttributeDotNetType(propertyName, typeof(object))); } } else { return(converterEntry.AttributeType); } }