XmlSchemaCollectionOwningSchema
This attribute sets the SqlParameter.XmlSchemaCollectionOwningSchema property value via a class property.
Attribute
Example usage:
public class Person
{
public int Id { get; set; }
[XmlSchemaCollectionName("XmlSchemaCollectionOwningSchema")]
public string XmlSchemaCollectionOwningSchema { get; set; }
}
Fluent Mapping
To configure via FluentMapper:
FluentMapper
.Entity<Person>()
.PropertyValueAttributes(e => e.Name, new XmlSchemaCollectionOwningSchema("XmlSchemaCollectionOwningSchema"));
Retrieval
Retrieve the attribute via PropertyValueAttributeCache:
var attribute = PropertyValueAttributeCache
.Get<Person>(e => e.Name)?
.FirstOrDefault(e => e.GetType() == typeof(XmlSchemaCollectionOwningSchema));
Or via PropertyValueAttributeMapper:
var attribute = PropertyValueAttributeMapper
.Get<Person>(e => e.Name)?
.FirstOrDefault(e => e.GetType() == typeof(XmlSchemaCollectionOwningSchema));
We strongly recommend using PropertyValueAttributeCache for maximum performance.