Skip to content

Commit 757e0e3

Browse files
committed
SqlTranslator: Date/time related format strings
1 parent 86979eb commit 757e0e3

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

Orm/Xtensive.Orm/Sql/Compiler/SqlTranslator.cs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,23 @@ public abstract class SqlTranslator : SqlDriverBound
7676
/// Gets the <see cref="DateOnly"/> format string.
7777
/// See <see cref="DateOnly.ToString(string)"/> for details
7878
/// </summary>
79-
public virtual string DateOnlyFormatString => throw new NotImplementedException();
79+
public abstract string DateOnlyFormatString { get; }
8080

8181
/// <summary>
82-
/// Gets the time span format string.
83-
/// See <see cref="SqlHelper.TimeSpanToString"/> for details.
82+
/// Gets the <see cref="TimeOnly"/> format string.
8483
/// </summary>
85-
public abstract string TimeSpanFormatString { get; }
84+
public abstract string TimeOnlyFormatString { get; }
8685

8786
/// <summary>
88-
/// Gets the <see cref="TimeOnly"/> format string.
87+
/// Gets the <see cref="DateTimeOffset"/> format string
8988
/// </summary>
90-
public virtual string TimeOnlyFormatString => throw new NotImplementedException();
89+
public virtual string DateTimeOffsetFormatString => throw new NotImplementedException();
90+
91+
/// <summary>
92+
/// Gets the time span format string.
93+
/// See <see cref="SqlHelper.TimeSpanToString"/> for details.
94+
/// </summary>
95+
public abstract string TimeSpanFormatString { get; }
9196

9297
/// <summary>
9398
/// Gets the parameter prefix.

0 commit comments

Comments
 (0)