Exemplo n.º 1
0
        public static Entity GetEntity(bool success, string message)
        {
            SimpleProperty property1 = new SimpleProperty("Success", typeof(bool));
            SimpleProperty property2 = new SimpleProperty("Message", typeof(string));
            Entity         entity    = new Entity(new PropertyCollection()
            {
                property1, property2
            });

            entity.SetValue(property1, success);
            entity.SetValue(property2, message);

            return(entity);
        }
Exemplo n.º 2
0
 public SimplePropertyDescriptor(SimpleProperty simpleProperty, params string[] parents)
     : base(simpleProperty.Name, null)
 {
     this._Parents        = parents;
     this._SimpleProperty = simpleProperty;
 }
Exemplo n.º 3
0
 public void SetValue(SimpleProperty simpleProperty, object value, params string[] parents)
 {
     this.GetEntity(parents).SetValue(simpleProperty.Name, value);
 }
Exemplo n.º 4
0
 public object GetValue(SimpleProperty simpleProperty, params string[] parents)
 {
     return(this.GetEntity(parents).GetValue(simpleProperty.Name));
 }