-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of DateTime2 + accompanying GetSqlDateTime2 method (#846)
- Loading branch information
1 parent
661b640
commit df12b41
Showing
16 changed files
with
528 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<docs> | ||
<members name="SqlDateTime2"> | ||
<SqlFileStream> | ||
<summary>Exposes SQL Server data that is stored as a DATETIME2.</summary> | ||
<remarks> | ||
<format type="text/markdown"> | ||
<![CDATA[ | ||
## Remarks | ||
The <xref:Microsoft.Data.SqlTypes.SqlDateTime2> class is used to work with `DATETIME2` data. | ||
`DATETIME2`has a wider range than DATETIME and thus needs its own type. | ||
]]> | ||
</format> | ||
</remarks> | ||
</SqlFileStream> | ||
<ctor1> | ||
<param name="isNull">Whether or not this instance should be considered null - true means null, false not null</param> | ||
<summary> | ||
Initializes a new instance of the <see cref="T:Microsoft.Data.SqlTypes.SqlDateTime2" /> struct. | ||
Will initialize the datetime value to 0. | ||
</summary> | ||
</ctor1> | ||
<ctor2> | ||
<param name="ticks">Number of ticks to initialize this instance with - in the range of <see cref="T:Microsoft.DateTime.MinValue.Ticks"/> & <see cref="T:Microsoft.DateTime.MaxValue.Ticks"/></param> | ||
|
||
<summary> | ||
Initializes a new instance of the <see cref="T:Microsoft.Data.SqlTypes.SqlDateTime2" /> class. | ||
</summary> | ||
<exception cref="T:System.ArgumentOutOfRangeException"> | ||
<paramref name="ticks" /> is not in the range of <see cref="T:Microsoft.DateTime.MinValue.Ticks"/> & <see cref="T:Microsoft.DateTime.MaxValue.Ticks"/> | ||
</exception> | ||
</ctor2> | ||
<Value> | ||
<summary> | ||
Gets the <see cref="T:System.DateTime"/> representation of this instance. | ||
</summary> | ||
<exception cref="T:Microsoft.Data.SqlTypes.SqlNullValueException"> | ||
If this instance is null | ||
</exception> | ||
</Value> | ||
<Null> | ||
<summary> | ||
Gets an instance representing the value NULL from the database. | ||
</summary> | ||
</Null> | ||
<OperatorDateTime> | ||
<summary> | ||
Converts a DateTime into a SqlDateTime2 | ||
</summary> | ||
</OperatorDateTime> | ||
<OperatorDBNull> | ||
<summary> | ||
Converts a DBNull instance into a Null SqlDateTime2 | ||
</summary> | ||
</OperatorDBNull> | ||
<OperatorSqlDateTime> | ||
<summary> | ||
Converts a SqlDateTime2 into DateTime | ||
</summary> | ||
<exception cref="T:Microsoft.Data.SqlTypes.SqlNullValueException"> | ||
If the SqlDateTime2 instance has a null value | ||
</exception> | ||
</OperatorSqlDateTime> | ||
<GetXsdType> | ||
<summary> | ||
returns a <see cref="T:System.Xml.XmlQualifiedName"/> for serialization purposes | ||
</summary> | ||
<param name="schemaSet">unused parameter</param> | ||
</GetXsdType> | ||
</members> | ||
</docs> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.