Share via


ColumnBuilder.Time Method

Definition

Overloads

Time(Nullable<Boolean>, Nullable<Byte>, Nullable<TimeSpan>, String, String, String)

Creates a new column definition to store Time data.

Time(Nullable<Boolean>, Nullable<Byte>, Nullable<TimeSpan>, String, String, String, IDictionary<String,AnnotationValues>)

Creates a new column definition to store Time data.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

Time(Nullable<Boolean>, Nullable<Byte>, Nullable<TimeSpan>, String, String, String)

Creates a new column definition to store Time data.

public System.Data.Entity.Migrations.Model.ColumnModel Time (Nullable<bool> nullable = null, Nullable<byte> precision = null, Nullable<TimeSpan> defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null);
member this.Time : Nullable<bool> * Nullable<byte> * Nullable<TimeSpan> * string * string * string -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Time (Optional nullable As Nullable(Of Boolean) = null, Optional precision As Nullable(Of Byte) = null, Optional defaultValue As Nullable(Of TimeSpan) = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null) As ColumnModel

Parameters

nullable
Nullable<Boolean>

Value indicating whether or not the column allows null values.

precision
Nullable<Byte>

The precision of the column.

defaultValue
Nullable<TimeSpan>

Constant value to use as the default value for this column.

defaultValueSql
String

SQL expression used as the default value for this column.

name
String

The name of the column.

storeType
String

Provider specific data type to use for this column.

Returns

The newly constructed column definition.

Applies to

Time(Nullable<Boolean>, Nullable<Byte>, Nullable<TimeSpan>, String, String, String, IDictionary<String,AnnotationValues>)

Creates a new column definition to store Time data.

Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1822:MarkMembersAsStatic")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public System.Data.Entity.Migrations.Model.ColumnModel Time (Nullable<bool> nullable = null, Nullable<byte> precision = null, Nullable<TimeSpan> defaultValue = null, string defaultValueSql = null, string name = null, string storeType = null, System.Collections.Generic.IDictionary<string,System.Data.Entity.Infrastructure.Annotations.AnnotationValues> annotations = null);
member this.Time : Nullable<bool> * Nullable<byte> * Nullable<TimeSpan> * string * string * string * System.Collections.Generic.IDictionary<string, System.Data.Entity.Infrastructure.Annotations.AnnotationValues> -> System.Data.Entity.Migrations.Model.ColumnModel
Public Function Time (Optional nullable As Nullable(Of Boolean) = null, Optional precision As Nullable(Of Byte) = null, Optional defaultValue As Nullable(Of TimeSpan) = null, Optional defaultValueSql As String = null, Optional name As String = null, Optional storeType As String = null, Optional annotations As IDictionary(Of String, AnnotationValues) = null) As ColumnModel

Parameters

nullable
Nullable<Boolean>

Value indicating whether or not the column allows null values.

precision
Nullable<Byte>

The precision of the column.

defaultValue
Nullable<TimeSpan>

Constant value to use as the default value for this column.

defaultValueSql
String

SQL expression used as the default value for this column.

name
String

The name of the column.

storeType
String

Provider specific data type to use for this column.

annotations
IDictionary<String,AnnotationValues>

Custom annotations usually from the Code First model.

Returns

The newly constructed column definition.

Attributes

Applies to