Прочетете на английски

Споделяне чрез


SqlitePropertyExtensions.SetSrid Method

Definition

Overloads

SetSrid(IMutableProperty, Nullable<Int32>)

Sets the SRID to use when creating a column for this property.

SetSrid(IConventionProperty, Nullable<Int32>, Boolean)

Sets the SRID to use when creating a column for this property.

SetSrid(IMutableProperty, Nullable<Int32>)

Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs

Sets the SRID to use when creating a column for this property.

C#
public static void SetSrid (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? value);

Parameters

property
IMutableProperty

The property.

value
Nullable<Int32>

The SRID.

Applies to

Entity Framework Core 9.0 и други версии
Продукт Версии
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0

SetSrid(IConventionProperty, Nullable<Int32>, Boolean)

Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs
Source:
SqlitePropertyExtensions.cs

Sets the SRID to use when creating a column for this property.

C#
public static void SetSrid (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? value, bool fromDataAnnotation = false);
C#
public static int? SetSrid (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? value, bool fromDataAnnotation = false);

Parameters

property
IConventionProperty

The property.

value
Nullable<Int32>

The SRID.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to

Entity Framework Core 9.0 и други версии
Продукт Версии
Entity Framework Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0