ObjectModelCommon
Note: Several properties in this model exist because they were created prior to the NamingFactory and should now be removed – as soon as dependent templates are updated. DO NOT USE THESE PROPERTIES!You can find the object model in the ObjectModelCommon project of the FullProject solution (or in Models/ObjectModelCommon under the trunk).
The current implementation of ObjectModelCommon interfaces is GenInputMetadataWrapper found in the FullProject solution (or in Wrappers/ GenInputMetadataWrapper under the trunk)
The object model represents metadata from the perspective of writing .NET code - -either a business layer or a DAL (Data Access Layer). To use this model:
- Determine and architecture and create some sample code (three suggested)
- Create a .NET template using the suggested pattern ( Not yet posted )
- Reference GenDotNet.ObjectModelCommon
- Import GenDotNet.ObjectModelCommon(part of the pattern sample)
At this point you’ll have an IObjectData reference available in the ObjectData class variable and should see Intellisense on the following structure:
- ObjectData (IObjectData)
- ClassName (string)
- CollectionClassName (string) ( May be removed! )
- ReadonlyListClassName (string) ( Planned for removal )
- ReaonlyClassName (string) ( Planned for removal )
- ClassNamespace (sring)
- Caption (string)
- OriginalName (string)
- IsLookup (Boolean)
“* CanListAll (Boolean)
- ConnectionStringName (string)
- Id (Guid) ( Represents template not any data keys )
- PrimarKey (IPropertyData)
- Name (string)
- OriginalName (string)
*IsPrimaryKey (Boolean)
- IsAutoincrement (Boolean)
- NetType (StandardNetType)
- TableName (string)
*Caption (string)
*AllowNulls (Boolean)
- SqlType (string)
- IsReadOnly (Boolean)
- MaxLength (Int32)
- IsLocalizedProperty (Boolean)
- UseForDesc (Boolean)
- DefaultValue (string)
- Privileges (IEnumerable(Of IPropertyPrivilegeData))
- Grantee (String)
- CanSee (Boolean)
- CanEdit (Boolean)
- ExtraProperties (IEnumerable(IPropertyData))
- DescriptionProperties (IEnumerable(IPropertyData))
- PrimaryKeys (IEnumerable(IPropertyData))
- ForeignKeys (IEnumerable(IForeignKeyData))
- Name (String)
- ObjectName (String)
- Keys (IEnumerable (Of IKeyData))
- LocalizedProperties (IEnumerable(IPropertyData))
- Children (IEnumerable(IChildData)
- Name (String)
- UniqueName (String)
- PluralUniqueName (String)
- Caption (String)
- IsHierarchy (Boolean)
- ObjectData (IObjectData)
- ChildFlag (UInt32)
- ChildKeys (IEnumerable(Of IKeyData))
- ChildColumn (String)
- ChildTable (String)
- ChildObjectName (String)
- ChildProperty (String)
- ParentColumn (String)
- ParentTable (String)
- ParentObjectName (String)
- ParentProperty (String)
- ChildObjectData (IObjectData)
- ParentObjectData (IObjectData)
- AlternateKeyCriteria (IEnumerable(ICriteriaData))
- ObjectData (IObjectData)
- Name (String)
- Criterions (IEnumerable (Of ICriterionData))
- Name (String)
- NetType (StandardNetType)
- StoredProcedureName (String)
- AlternateKeySetCriteria (IEnumerable(ICriteriaData))
- StoredProcedure (IStoredProcedureData)
- ObjectData (IObjectData)
- Name (String)
- Parameters (IEnumerable (Of ISpParameterData))
- Name (String)
- PropertyName (String)
- NetType (StandardNetType)
- Direction (SpParameterDirection
- Privileges (IEnumerable(IClassPrivilegeData))
- Grantee (String)
- CanCreate (Boolean)
- CanRetrieve (Boolean)
- CanUpdate (Boolean)
- CanDelete (Boolean)
- CanSetSelect (Boolean)