Table of Contents

Interface INpgsqlNameTranslator

Namespace
Npgsql
Assembly
Npgsql.dll

A component which translates a CLR name (e.g. SomeClass) into a database name (e.g. some_class) according to some scheme. Used for mapping enum and composite types.

public interface INpgsqlNameTranslator

Methods

TranslateMemberName(string)

Given a CLR member name (property or field), translates its name to a database type name.

string TranslateMemberName(string clrName)

Parameters

clrName string

Returns

string

TranslateTypeName(string)

Given a CLR type name (e.g class, struct, enum), translates its name to a database type name.

string TranslateTypeName(string clrName)

Parameters

clrName string

Returns

string