Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • SQL Anywhere ab Version 17 (ältere Versionen nicht getestet)

Mapping von Datentypen

Die nachfolgenden Tabellen zeigen das Feld-Mapping des Modell-Typs (MetaType) auf den in der Entwicklung im Customizing verwendeten .Net Datentyp und den in der Datenbank verwendeten Typ im Model-First Modus. Im DB-First Modus können teilewise weitere DB Typen verwendet werden die dann auf die bestehenden MetaTypes gemappt werden.

MS SQL Server

...

MetaType

...

.Net Typ

...

DB Typ

...

Nutzbarer Wertebereich

...

Bemerkungen

...

Boolean

...

bool

...

bit

...

false / true

...

TinyInteger

...

byte

...

tinyint

...

0..255

...

SmallInteger

...

short

...

smallint

...

-32,768 to 32,767

...

Integer

...

int

...

int

...

-2,147,483,648 to 2,147,483,647

...

LargeInteger

...

long

...

bigint

...

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

...

Double

...

double

...

float

...

Max-Werte von .Net und MS SQL unterschiedlich

...

Decimal

...

decimal

...

decimal(29,4)

...

War “decimal(33,4)” vor 10.0 Final

...

Date

...

DateTime

...

date

...

Time

...

DateTime

...

time(7)

...

DateTime

...

DateTime

...

datetime2(7)

...

TimeSpan

...

TimeSpan

...

bigint

...

Text

...

string

...

nvarchar(n)

...

-

...

Binary

...

byte[]

...

varbinary(n)

...

-

...

Stream

...

Stream

...

varbinary(n)

...

-

...

Guid

...

Guid

...

unqiueidentifier

...

-

PostgreSql

...

MetaType

...

.Net Typ

...

DB Typ

...

Nutzbarer Wertebereich

...

Bemerkungen

...

Boolean

...

bool

...

boolean

...

false / true

...

TinyInteger

...

byte

...

smallint

...

0..255

...

SmallInteger

...

short

...

smallint

...

-32,768 to 32,767

...

Integer

...

int

...

integer

...

-2,147,483,648 to 2,147,483,647

...

LargeInteger

...

long

...

bigint

...

-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

...

Double

...

double

...

double precision

...

Decimal

...

decimal

...

decimal(29,4)

...

War “decimal” vor 10.0 Final

...

Date

...

DateTime

...

date

...

Time

...

DateTime

...

time without time zone

...

DateTime

...

DateTime

...

timestamp without time zone

...

TimeSpan

...

TimeSpan

...

interval

...

Text

...

string

...

character varying

...

-

...

Binary

...

byte[]

...

bytea

...

-

...

Stream

...

Stream

...

bytea

...

-

...

Guid

...

Guid

...

uuid

...

-

...

Weitere Details sind im Entwicklerbereich dokumentiert: Datenbanken