次の方法で共有


SqlMethods Class

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Provides methods that correspond to SQL Server functions. Methods in the SqlMethods class are only supported in LINQ to SQL queries.

Inheritance Hierarchy

System.Object
  System.Data.Linq.SqlClient.SqlMethods

Namespace:  System.Data.Linq.SqlClient
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public NotInheritable Class SqlMethods
public static class SqlMethods

Methods

  Name Description
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffDay(DateTime, DateTime) Counts the number of day boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffDay(Nullable<DateTime>, Nullable<DateTime>) Counts the number of day boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffDay(DateTimeOffset, DateTimeOffset) Counts the number of day boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffDay(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of day boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffHour(DateTime, DateTime) Counts the number of hour boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffHour(Nullable<DateTime>, Nullable<DateTime>) Counts the number of hour boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffHour(DateTimeOffset, DateTimeOffset) Counts the number of hour boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffHour(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of hour boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMicrosecond(DateTime, DateTime) Counts the number of microsecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMicrosecond(Nullable<DateTime>, Nullable<DateTime>) Counts the number of microsecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMicrosecond(DateTimeOffset, DateTimeOffset) Counts the number of microsecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMicrosecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of microsecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(DateTime, DateTime) Counts the number of millisecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(Nullable<DateTime>, Nullable<DateTime>) Counts the number of millisecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(DateTimeOffset, DateTimeOffset) Counts the number of millisecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMillisecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of millisecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMinute(DateTime, DateTime) Counts the number of minute boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMinute(Nullable<DateTime>, Nullable<DateTime>) Counts the number of minute boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMinute(DateTimeOffset, DateTimeOffset) Counts the number of minute boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMinute(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of minute boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMonth(DateTime, DateTime) Counts the number of month boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMonth(Nullable<DateTime>, Nullable<DateTime>) Counts the number of month boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMonth(DateTimeOffset, DateTimeOffset) Counts the number of month boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffMonth(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of month boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffNanosecond(DateTime, DateTime) Counts the number of nanosecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffNanosecond(Nullable<DateTime>, Nullable<DateTime>) Counts the number of nanosecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffNanosecond(DateTimeOffset, DateTimeOffset) Counts the number of nanosecond boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffNanosecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of nanosecond boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffSecond(DateTime, DateTime) Counts the number of second boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffSecond(Nullable<DateTime>, Nullable<DateTime>) Counts the number of second boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffSecond(DateTimeOffset, DateTimeOffset) Counts the number of second boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffSecond(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of second boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffYear(DateTime, DateTime) Counts the number of year boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffYear(Nullable<DateTime>, Nullable<DateTime>) Counts the number of year boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffYear(DateTimeOffset, DateTimeOffset) Counts the number of year boundaries between two non-nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone DateDiffYear(Nullable<DateTimeOffset>, Nullable<DateTimeOffset>) Counts the number of year boundaries between two nullable dates.
Public methodStatic memberSupported by Silverlight for Windows Phone Like(String, String) Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries.
Public methodStatic memberSupported by Silverlight for Windows Phone Like(String, String, Char) Determines whether a specific character string matches a specified pattern. This method is currently only supported in LINQ to SQL queries.

Top

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.