예제 #1
0
        public static NewObjectProperties NewRootObjectProperties(string objectType)
        {
            _identity      = new NewObjectProperties();
            _identity.Text = @"New " + objectType + @" Properties";
            var list = new List <ObjectProperty>();

            list.Add(new ObjectProperty(_identity, "ObjectName"));
            return(_identity.AssignList(list));
        }
예제 #2
0
        public static NewObjectProperties NewNVLProperties()
        {
            _identity      = new NewObjectProperties();
            _identity.Text = @"New Name Value List Properties";
            var list = new List <ObjectProperty>();

            list.Add(new ObjectProperty(_identity, "CollectionName"));
            return(_identity.AssignList(list));
        }
예제 #3
0
        public static NewObjectProperties NewReadOnlyChildProperties()
        {
            _identity      = new NewObjectProperties();
            _identity.Text = @"New Read Only Child Object Properties";
            var list = new List <ObjectProperty>();

            list.Add(new ObjectProperty(_identity, "ObjectName"));
            list.Add(new ObjectProperty(_identity, "ParentType",
                                        GeneratorController.Current.CurrentUnit.CslaObjects.GetAllParentNames(CslaObjectType.ReadOnlyCollection).ToArray()));
            list.Add(new ObjectProperty(_identity, "PropertyNameInParentType"));
            list.Add(new ObjectProperty(_identity, "ParentProperties"));
            return(_identity.AssignList(list));
        }
예제 #4
0
 public ObjectProperty(NewObjectProperties parent, string propertyName)
     : this(parent, propertyName, new string[] { })
 {
 }
예제 #5
0
 public ObjectProperty(NewObjectProperties parent, string propertyName, string[] resultValueList)
 {
     _parent          = parent;
     _propertyName    = propertyName;
     _resultValueList = resultValueList;
 }