InstanceNameAttribute class
namespace: Serenity.Data assembly: Serenity.Net.Services
Determines non-plural name for an entity.
[AttributeUsage(AttributeTargets.Class)]
public class InstanceNameAttribute : Attribute, IHasTextKey
| parameter | description |
|---|---|
| instanceName | Name of the instance. |
Public Members
| name | description |
|---|---|
| InstanceNameAttribute(…) | Determines non-plural name for an entity. |
| InstanceName { get; } | Gets the name of the instance. |
| TextKey { get; set; } | Gets or sets the local text key for the instance name. |
Remarks
Initializes a new instance of the InstanceNameAttribute class.
See Also
- interface IHasTextKey
- Source: InstanceNameAttribute.cs