ArrayBindStatus
This attribute sets the OracleParameter.ArrayBindStatus property value via a class property. Only meaningful for an Array Bind or PL/SQL Associative Array Bind execution.
Attribute
Example usage:
public class Person
{
public int Id { get; set; }
[ArrayBindStatus(new [] { OracleParameterStatus.Success })]
public string Name { get; set; }
}
Fluent Mapping
To configure via FluentMapper:
FluentMapper
.Entity<Person>()
.PropertyValueAttributes(e => e.Name, new ArrayBindStatusAttribute(new [] { OracleParameterStatus.Success }));
Retrieval
Retrieve the attribute via PropertyValueAttributeCache:
var attribute = PropertyValueAttributeCache
.Get<Person>(e => e.Name)?
.FirstOrDefault(e => e.GetType() == typeof(ArrayBindStatusAttribute));
We strongly recommend using PropertyValueAttributeCache for maximum performance.