Class DataModelAttribute
Used to provide the model code generator additional information about a specific data type. Use of this optional because the code generator assumes that all types that are not specifically tagged by ServiceModelAttribute are data types.
Namespace: Neon.ModelGen
Assembly: Neon.Common.dll
Syntax
[AttributeUsage(AttributeTargets.Interface)]
public class DataModelAttribute : Attribute
Constructors
DataModelAttribute()
Constructor.
Declaration
public DataModelAttribute()
Properties
Name
Optionally specifies the type identifier that will be used by generated code to identify the object type at runtime. This will be used when deserializing the object.
This defaults to the fully qualified name of the type as it appears in the source assembly as it is scanned by the code generator. You may want to set this to reduce the length or just to customize how your data is persistedd.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |