src/EntityFramework/DbFunctions.cs
/// <summary>
///     When used as part of a LINQ to Entities query, this method invokes the canonical CreateDateTimeOffset EDM function to
///     create a new <see cref="DateTimeOffset" /> object.
/// </summary>
/// <remarks>
///     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.
/// </remarks>
/// <param name="year"> The year. </param>
/// <param name="month"> The month (1-based). </param>
/// <param name="day"> The day (1-based). </param>
/// <param name="hour"> The hours. </param>
/// <param name="minute"> The minutes. </param>
/// <param name="second"> The seconds, including fractional parts of the seconds if desired. </param>
/// <param name="timeZoneOffset"> The time zone offset part of the new date. </param>
/// <returns> The new date/time. </returns>
When used as part of a LINQ to Entities query, this method invokes the canonical CreateDateTimeOffset EDM function to
create a new  object.
When used as part of a LINQ to Entities query this method invokes the canonical CreateDateTimeOffset EDM function to create a new object .
[SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "month")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "timeZoneOffset")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "second")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "hour")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "minute")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "day")]
        [SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "year")]
        [DbFunction("Edm", "CreateDateTimeOffset")]
        public static DateTimeOffset? CreateDateTimeOffset(
            int? year, Int32? month, Int32? day, Int32? hour, Int32? minute, double? second, Int32? timeZoneOffset)
        {
            throw new NotSupportedException(Strings.ELinq_DbFunctionDirectCall);
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ SuppressMessage ( " " , " " , MessageId = " " ) ] [ DbFunction ( " " , " " ) ] public static DateTimeOffset ? CreateDateTimeOffset ( int ? year , Int32 ? month , Int32 ? day , Int32 ? hour , Int32 ? minute , double ? second , Int32 ? timeZoneOffset ) { throw new NotSupportedException ( Strings . ELinq_DbFunctionDirectCall ) ; }
When used as part of a LINQ to Entities query, this method invokes the canonical CreateDateTimeOffset EDM function to
create a new  object.
When used as part of a LINQ to Entities query this method invokes the canonical CreateDateTimeOffset EDM function to create a new object .
The new date/time.
The new date / time .
year
int?
None
month
Int32?
The month (1-based).
The month ( 1 - based ) .
day
Int32?
The day (1-based).
The day ( 1 - based ) .
hour
Int32?
None
minute
Int32?
None
second
double?
The seconds, including fractional parts of the seconds if desired.
The seconds including fractional parts of the seconds if desired .
timeZoneOffset
Int32?
The time zone offset part of the new date.
The time zone offset part of the new date .
remarks
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.
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 .