Custom attribute that can be added to an interface to tell the Brightstar
Entity Framework to generate a different custom attribute on the generated
entity class.
Namespace: BrightstarDB.EntityFrameworkAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public class ClassAttributeAttribute : Attribute |
Visual Basic |
---|
Public Class ClassAttributeAttribute
Inherits Attribute |
Visual C++ |
---|
public ref class ClassAttributeAttribute : public Attribute |
F# |
---|
type ClassAttributeAttribute =
class
inherit Attribute
end |
Remarks
Examples
| Copy |
---|
[ClassAttribute("[System.ComponentModel.DisplayName(\"Person\")]")
[Entity]
public interface IFoafPerson {
...
} |
will result in the following generated entity code:
| Copy |
---|
[System.ComponentModel.DisplayName("Person")]
public class FoafPerson : IFoafPerson {
...
} |
Inheritance Hierarchy
See Also