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.EntityFramework
Assembly: 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

The value of this custom attribute should be the full markup for the custom attribute to be added to the generated class. Because the generated class will not contain any custom namespace imports, it is important to ensure that the values specified with this attribute use the fully qualified type name for any custom attribute, otherwise the generated class will not compile.

Examples

 Copy imageCopy
[ClassAttribute("[System.ComponentModel.DisplayName(\"Person\")]")
[Entity]
public interface IFoafPerson {
...
}
will result in the following generated entity code:
 Copy imageCopy
[System.ComponentModel.DisplayName("Person")]
public class FoafPerson : IFoafPerson {
...
}

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    BrightstarDB.EntityFramework..::..ClassAttributeAttribute

See Also