SubstringAttribute class
namespace: Serenity.Data.Mapping assembly: Serenity.Net.Services
Substring expression attribute, which returns a part of a string like SUBSTRING of SQL Server.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class SubstringAttribute : BaseExpressionAttribute
| parameter |
description |
| expression |
An expression that returns a string. |
| start |
An expression that returns the position of the first character, starting from 1. |
| length |
An expression that returns the number of characters. |
Public Members
| name |
description |
| SubstringAttribute(…) |
Substring expression attribute, which returns a part of a string like SUBSTRING of SQL Server. |
| Expression { get; } |
String expression. |
| Length { get; } |
Length expression. |
| Start { get; } |
Start position expression. |
| override Translate(…) |
|
Exceptions
| exception |
condition |
| ArgumentNullException |
One of the expressions is null. |
See Also