|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using XTreeInterfaces;
namespace ROPLib
{
public class EntityAttribute : IHasCollection
{
[Category("Name")]
[XmlAttribute()]
[TypeConverter(typeof(AttributeNameConverter))]
public string Name { get; set; }
[Category("Schema")]
[XmlAttribute()]
[Description("The field name this attribute maps to. If blank, the attribute name will be used.")]
public string FieldName { get; set; }
[Category("Schema")]
[XmlAttribute()]
[Description("True if this field is the entity's primary key.")]
public bool IsPrimaryKey { get; set; }
[XmlIgnore]
[Browsable(false)]
public Dictionary<string, dynamic> Collection { get { return null; } }
[XmlIgnore]
[Browsable(false)]
public string FieldNameOrName { get { return (String.IsNullOrEmpty(FieldName) ? Name : FieldName); } }
public EntityAttribute()
{
FieldName = String.Empty;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.