SmartNpgsqlCircleTypeHandler
Namespace: MJCZone.DapperMatic.TypeMapping.Handlers
Assembly: MJCZone.DapperMatic
Summary
Smart type handler for NpgsqlCircle with provider-specific optimization. PostgreSQL: Native circle type Others: Extended WKT format - "CIRCLE(x y, radius)"
Inheritance
Implemented Interfaces:
- ITypeHandler
public
Contents
Constructors (1) | Methods (6)
Constructors
SmartNpgsqlCircleTypeHandler
csharp
SmartNpgsqlCircleTypeHandler()Methods
| Method | Summary |
|---|---|
| SetValue | Sets the parameter value for a circle. PostgreSQL: Passes circle directly (Npgsql converts NpgsqlCir... |
| Parse | Parses a database value back to NpgsqlCircle. PostgreSQL: Value is already NpgsqlCircle from Npgsql.... |
| GetType | |
| ToString | |
| Equals | |
| GetHashCode |
SetValue
Sets the parameter value for a circle. PostgreSQL: Passes circle directly (Npgsql converts NpgsqlCircle to native PostgreSQL circle). Other providers: Serializes circle to extended WKT format.
csharp
void SetValue(IDbDataParameter parameter, object value)Parameters
- parameter (IDbDataParameter) - The database parameter to set.
- value (object) - The NpgsqlCircle value to store.
Parse
Parses a database value back to NpgsqlCircle. PostgreSQL: Value is already NpgsqlCircle from Npgsql. Other providers: Deserializes from extended WKT format.
csharp
object? Parse(Type destinationType, object value)Parameters
- destinationType (Type) - The target type (NpgsqlCircle).
- value (object) - The database value to parse.
Returns
Type: object?
An NpgsqlCircle instance.
GetType
csharp
GetType()ToString
csharp
ToString()Equals
csharp
Equals()GetHashCode
csharp
GetHashCode()