Skip to content

DmMemberMap

Namespace: MJCZone.DapperMatic.TypeMapping

Assembly: MJCZone.DapperMatic

Summary

Maps a database column to a C# property or constructor parameter. Supports modern C# patterns including records with parameterized constructors.

Inheritance

Implemented Interfaces:

  • IMemberMap

public

Contents

Constructors (1) | Methods (4) | Properties (5)

Constructors

DmMemberMap

Initializes a new instance of the DmMemberMap class.

csharp
DmMemberMap(string columnName, PropertyInfo property, ParameterInfo parameter)

Parameters

  • columnName (string) - The database column name.
  • property (PropertyInfo) - The property to map to (for regular properties and settable members).
  • parameter (ParameterInfo) - The constructor parameter to map to (for records and immutable objects).

Methods

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()

Properties

ColumnName

Type: string

MemberType

Type: Type

Property

Type: PropertyInfo?

Field

Type: FieldInfo?

Parameter

Type: ParameterInfo?