Is there any way of making a composite attribute in C# to provide equivalent metadata at compile time?
E.g, change:
[ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("MyProgId")]
[MyMefExport("MyProgId")]
public class MyClass
{
}
To:
[MyCompositeAttribute("MyProgId")]
public class MyClass
{
}
A composite attribute consists of a group of values from more than one domain. For example, the Address attribute consists of several domains such as house number, street number, city, country, etc. What is the primary attribute of composite numbers?
What is a composite attribute in DBMS? The attributes that cannot be divided into sub-parts are called simple attributes. The attributes which can be divided into sub-parts are called composite attributes. Let’s consider an example of how to convert Entity Relationship (ER) model of composite attribute to Relational model.
The attributes which can be divided into sub-parts are called composite attributes. Let’s consider an example of how to convert Entity Relationship (ER) model of composite attribute to Relational model.
In ER diagram, composite attribute is represented by an oval comprising of ovals. 3. Multivalued Attribute – An attribute consisting more than one value for a given entity. For example, Phone_No (can be more than one for a given student).
Attributes in and of themselves are meaningless. It is the code that enumerates the attributes attached to a class that may change its operation.
If you control the code that understands the attribute, you could create a composite attribute and act as though multiple separate attributes were applied.
That being said, I doubt you control ProgId nor the C# compiler that interprets it...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With