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)); }
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)); }
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)); }