Class ODataAliasAttribute
This Attribute marks an Entity with an alias to be presented through the oData endpoint. the default is to present an entity set that is named the same as the entity table.
Inheritance
System.Object
ODataAliasAttribute
Namespace: Cireson.Core.Common.Attributes
Assembly: Cireson.Core.Common.dll
Syntax
public class ODataAliasAttribute : Attribute
Remarks
Admin, 8/24/2017.
Constructors
View SourceODataAliasAttribute()
Default will alias to the name of the attached class.
Declaration
public ODataAliasAttribute()
Remarks
Admin, 8/24/2017.
ODataAliasAttribute(String)
Applies the specified alias to the odata endpoint.
Declaration
public ODataAliasAttribute(string alias)
Parameters
Type | Name | Description |
---|---|---|
System.String | alias | . |
Remarks
Admin, 8/24/2017.
Properties
View SourceAlias
EntitySet or Action/Function name to be presented to the odata endpoint.
Declaration
public string Alias { get; set; }
Property Value
Type | Description |
---|---|
System.String | The alias. |
Remarks
Leave blank to use the simple type name.