Class MapToPgMoneyAttribute
This attribute maps a model property to/from a PostgreSQL Money parameter or column.
Inheritance
System.Object
System.Attribute
MapToPgMoneyAttribute
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ArgentSea.Pg
Assembly: ArgentSea.Pg.dll
Syntax
public class MapToPgMoneyAttribute : PgParameterMapAttribute
Constructors
| Improve this Doc View SourceMapToPgMoneyAttribute(String)
Map this property to the specified Money database column.
Declaration
public MapToPgMoneyAttribute(string parameterName)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | The name of the parameter or column that contains the value. The system will automatically add or remove the prefix '@' as needed. |
MapToPgMoneyAttribute(String, Boolean)
Declaration
public MapToPgMoneyAttribute(string parameterName, bool isRequired)
Parameters
Type | Name | Description |
---|---|---|
System.String | parameterName | |
System.Boolean | isRequired |
Properties
| Improve this Doc View SourceColumnName
Declaration
public override string ColumnName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceParameterName
Declaration
public override string ParameterName { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
| Improve this Doc View SourceAppendInParameterExpressions(IList<Expression>, ParameterExpression, ParameterExpression, HashSet<String>, Expression, Type, ParameterExpression, ILogger)
Declaration
protected override void AppendInParameterExpressions(IList<Expression> expressions, ParameterExpression expSprocParameters, ParameterExpression expIgnoreParameters, HashSet<string> parameterNames, Expression expProperty, Type propertyType, ParameterExpression expLogger, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | expressions | |
System.Linq.Expressions.ParameterExpression | expSprocParameters | |
System.Linq.Expressions.ParameterExpression | expIgnoreParameters | |
System.Collections.Generic.HashSet<System.String> | parameterNames | |
System.Linq.Expressions.Expression | expProperty | |
System.Type | propertyType | |
System.Linq.Expressions.ParameterExpression | expLogger | |
Microsoft.Extensions.Logging.ILogger | logger |
Overrides
| Improve this Doc View SourceAppendReaderExpressions(Expression, IList<MethodCallExpression>, IList<Expression>, ParameterExpression, ParameterExpression, ParameterExpression, ref Int32, Type, ParameterExpression, ILogger)
Declaration
protected override void AppendReaderExpressions(Expression expProperty, IList<MethodCallExpression> columnLookupExpressions, IList<Expression> expressions, ParameterExpression prmSqlRdr, ParameterExpression expOrdinals, ParameterExpression expOrdinal, ref int propIndex, Type propertyType, ParameterExpression expLogger, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expProperty | |
System.Collections.Generic.IList<System.Linq.Expressions.MethodCallExpression> | columnLookupExpressions | |
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | expressions | |
System.Linq.Expressions.ParameterExpression | prmSqlRdr | |
System.Linq.Expressions.ParameterExpression | expOrdinals | |
System.Linq.Expressions.ParameterExpression | expOrdinal | |
System.Int32 | propIndex | |
System.Type | propertyType | |
System.Linq.Expressions.ParameterExpression | expLogger | |
Microsoft.Extensions.Logging.ILogger | logger |
Overrides
| Improve this Doc View SourceAppendReadOutParameterExpressions(Expression, IList<Expression>, ParameterExpression, ParameterExpression, Type, ParameterExpression, ILogger)
Declaration
protected override void AppendReadOutParameterExpressions(Expression expProperty, IList<Expression> expressions, ParameterExpression expPrms, ParameterExpression expPrm, Type propertyType, ParameterExpression expLogger, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression | expProperty | |
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | expressions | |
System.Linq.Expressions.ParameterExpression | expPrms | |
System.Linq.Expressions.ParameterExpression | expPrm | |
System.Type | propertyType | |
System.Linq.Expressions.ParameterExpression | expLogger | |
Microsoft.Extensions.Logging.ILogger | logger |
Overrides
| Improve this Doc View SourceAppendSetOutParameterExpressions(IList<Expression>, ParameterExpression, ParameterExpression, HashSet<String>, ParameterExpression, ILogger)
Declaration
protected override void AppendSetOutParameterExpressions(IList<Expression> expressions, ParameterExpression expSprocParameters, ParameterExpression expIgnoreParameters, HashSet<string> parameterNames, ParameterExpression expLogger, ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<System.Linq.Expressions.Expression> | expressions | |
System.Linq.Expressions.ParameterExpression | expSprocParameters | |
System.Linq.Expressions.ParameterExpression | expIgnoreParameters | |
System.Collections.Generic.HashSet<System.String> | parameterNames | |
System.Linq.Expressions.ParameterExpression | expLogger | |
Microsoft.Extensions.Logging.ILogger | logger |
Overrides
| Improve this Doc View SourceIsValidType(Type)
Declaration
public override bool IsValidType(Type candidateType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | candidateType |
Returns
Type | Description |
---|---|
System.Boolean |