ReplaceAttribute class
namespace: Serenity.Data.Mapping assembly: Serenity.Net.Services
Replace expression attribute, which replaces all occurrences of a string in another one like REPLACE of SQL Server.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = true)]
public class ReplaceAttribute : BaseExpressionAttribute
| parameter |
description |
| expression |
An expression that returns the string to search in. |
| search |
An expression that returns the string to search for. |
| replacement |
An expression that returns the string to replace it with. |
Public Members
| name |
description |
| ReplaceAttribute(…) |
Replace expression attribute, which replaces all occurrences of a string in another one like REPLACE of SQL Server. |
| Expression { get; } |
String expression. |
| Replacement { get; } |
Replacement expression. |
| Search { get; } |
Search expression. |
| override Translate(…) |
|
Exceptions
| exception |
condition |
| ArgumentNullException |
One of the expressions is null. |
See Also