DbFunctions.AddSeconds Method

 

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a date/time.

Namespace:   System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddSeconds(Nullable<DateTime>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a date/time.

System_CAPS_pubmethodSystem_CAPS_staticAddSeconds(Nullable<DateTimeOffset>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a date/time.

System_CAPS_pubmethodSystem_CAPS_staticAddSeconds(Nullable<TimeSpan>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a time span.


DbFunctions.AddSeconds Method (Nullable<DateTime>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a date/time.

[DbFunctionAttribute("Edm", "AddSeconds")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "timeValue")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "addValue")]
public static Nullable<DateTime> AddSeconds(
	Nullable<DateTime> timeValue,
	Nullable<int> addValue
)

Parameters

timeValue
Type: System.Nullable<DateTime>

The input date/time.

addValue
Type: System.Nullable<Int32>

The number of seconds to add.

Return Value

Type: System.Nullable<DateTime>

A resulting date/time.

You cannot call this function directly. This function can only appear within a LINQ to Entities query. This function is translated to a corresponding function in the database.


DbFunctions.AddSeconds Method (Nullable<DateTimeOffset>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a date/time.

[DbFunctionAttribute("Edm", "AddSeconds")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "addValue")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "timeValue")]
public static Nullable<DateTimeOffset> AddSeconds(
	Nullable<DateTimeOffset> timeValue,
	Nullable<int> addValue
)

Parameters

timeValue
Type: System.Nullable<DateTimeOffset>

The input date/time.

addValue
Type: System.Nullable<Int32>

The number of seconds to add.

Return Value

Type: System.Nullable<DateTimeOffset>

A resulting date/time.

You cannot call this function directly. This function can only appear within a LINQ to Entities query. This function is translated to a corresponding function in the database.


DbFunctions.AddSeconds Method (Nullable<TimeSpan>, Nullable<Int32>)

When used as part of a LINQ to Entities query, this method invokes the canonical AddSeconds EDM function to add the given number of seconds to a time span.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "timeValue")]
[DbFunctionAttribute("Edm", "AddSeconds")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "addValue")]
public static Nullable<TimeSpan> AddSeconds(
	Nullable<TimeSpan> timeValue,
	Nullable<int> addValue
)

Parameters

timeValue
Type: System.Nullable<TimeSpan>

The input date/time.

addValue
Type: System.Nullable<Int32>

The number of seconds to add.

Return Value

Type: System.Nullable<TimeSpan>

A resulting time span.

You cannot call this function directly. This function can only appear within a LINQ to Entities query. This function is translated to a corresponding function in the database.