Datei: NDODLL/Linq/ServerFunctionAttribute.cs
Last Commit (b47b95e)
1 | -- File didn't exist -- |
New Commit (c499e21)
1 | using System; |
2 | |
3 | namespace NDO.Linq |
4 | { |
5 | ····/// <summary> |
6 | ····/// Attribute to rename a server function |
7 | ····/// </summary> |
8 | ····/// <remarks> |
9 | ····/// If a method has this attribute, the attribute value is used as the name of the server function instead of the method name. |
10 | ····/// </remarks> |
11 | ····[AttributeUsage(AttributeTargets.Method)] |
12 | ····public class ServerFunctionAttribute : Attribute |
13 | ····{ |
14 | ········/// <summary> |
15 | ········/// Gets or sets the name to be used for the server function |
16 | ········/// </summary> |
17 | ········public string Name { get; set; } |
18 | |
19 | ········/// <summary> |
20 | ········/// Constructs a ServerFunctionAttribute object |
21 | ········/// </summary> |
22 | ········/// <param name="serverFunctionName"></param> |
23 | ········public ServerFunctionAttribute(string serverFunctionName) |
24 | ········{ |
25 | ············Name = serverFunctionName; |
26 | ········} |
27 | ····} |
28 | } |
29 |