Describe the enhancement
To further support the setting of most properties of the DbParameter object before the actual execution, please add following attributes.
Usage
public class EntityClass
{
[DbTypeAttribute(DbType.String)]
[DirectionAttribute(ParameterDirection.Input)]
[NameAttribute("CompleteName")]
[PrecisionAttribute(1)]
[ScaleAttribute(10)]
[SizeAttribute(256)]
public string Name { get; set; }
}
DbParameter
Add the following attributes.
- DbTypeAttribute
- DirectionAttribute
- IsNullableAttribute
- NameAttribute
- PrecisionAttribute
- ScaleAttribute
- SizeAttribute
All the mentioned attributes must inherit from the PropertyValueAttribute attribute.
SqlParameter (SQL Server)
- CompareInfoAttribute
- DataTypeNameAttribute
- ForceColumnEncryptionAttribute
- LocaleIdAttribute
- OffsetAttribute
- SqlDbTypeAttribute
- XmlSchemaCollectionNameAttribute
- XmlSchemaCollectionDatabaseAttribute
- XmlSchemaCollectionOwningSchemaAttribute
NpgsqlParameter (PostgreSQL)
- ConvertedValueAttribute
- DataTypeNameAttribute
- NpgsqlDbTypeAttribute
MySqlParameter (MySQL)
MySqlParameter (MySQL Connector)
SQLiteParameter (System)
SqliteParameter (Microsoft)
Describe the enhancement
To further support the setting of most properties of the DbParameter object before the actual execution, please add following attributes.
Usage
DbParameter
Add the following attributes.
All the mentioned attributes must inherit from the PropertyValueAttribute attribute.
SqlParameter (SQL Server)
NpgsqlParameter (PostgreSQL)
MySqlParameter (MySQL)
MySqlParameter (MySQL Connector)
SQLiteParameter (System)
SqliteParameter (Microsoft)