0

Resolved

0001 Database Capability (Phase 1) - 20 Modify AbstraX Generator

description

·         Learn how T4 works
·         Learn how AbstraX Generator works
·         Modify AbstraXClientInterfaceGenerator.tt to add LoadExtension method
·         Call method.GetCustomAttributes to retrieve AbstraXExtensionAttribute if available
·         Read properties from Attribute instance
·         Add code to the constructor of front-end class to register instance of ImplementationName property.
·         Add code to return ProviderLoader.Container.Load<[InterfaceName]>()
 
Should look like the following for EntityProvider:
public IAbstraXExtension LoadExtension()
{                         
    return ProviderLoader.Container.Load<IEntityProviderExtension>()
}
 
Related requirements:
 
AbstraX Extensions
 
• Provided by AbstraX Provider.
 
  1. The Base AbstraXProvider will provide a shared interface that must be implemented by all AbstraX Extensions.
  2. The EntityProvider will have a shared class (i.e. EntityProviderExtension.shared.cs) that will provide functionality to the front-end.
  3. The Base AbstraXProvider will provide the definition of an Attribute that will be acquired by the Silverlight front-end code generator (AbstraXGenerator) to instantiate and provide an instance of the extension.
  4. A method will be added to the IBase server and client interfaces for returning an extension.
  5. The EntityProvider back-end Entities will be refactored to provide the interface method
  6. The back-end implementation of the interface method will be decorated with the Attribute as described above and will return null by default.
  7. The AbstraXGenerator will read the Attribute from this method to instantiate and return the AbstraXExtension via a Unity IoC container.
     
    • Handles Tree View events.
     
  8. The Base AbstraXProvider tree view node classes will query each internal node for an AbstraX Extension interface.
  9. The Base AbstraXProvider tree view node classes forward all necessary fired events to the extension.
     
    • Can be swapped out.
     
  10. AbstraX Provider extension as provided by the Unity IoC container will allow for unit testing of both the extension itself as well as the Base AbstraX Provider front-end tree nodes.
     
     
    Reproduction steps;
     
  11. verify all extensions are working.
  12. expend all nodes to check that each parent node is queried for its child node till no child are present for parent node.
  13. verify all add, rename, delete node methods to check if code it reaching to database.

comments

wrote Mar 30, 2012 at 3:58 AM

Associated with changeset 13509.

wrote Apr 24, 2012 at 2:09 AM

Associated with changeset 14057.

wrote Jul 22, 2012 at 7:32 PM

wrote Jul 24, 2012 at 1:47 AM

wrote Sep 21, 2012 at 2:18 AM

mansimran wrote Oct 5, 2012 at 4:51 AM

add, rename, delete node not appearing on right click on Entity Set node.

Anureeta wrote Oct 19, 2012 at 8:40 PM

  1. verify all extensions are working.-------------Passed
  2. expend all nodes to check that each parent node is queried for its child node till no child are present for parent node.-------Passed
  3. verify all add, rename, delete node methods to check if code it reaching to database.-------Failed

wrote Oct 19, 2012 at 10:04 PM

wrote Feb 13, 2013 at 10:51 PM

wrote May 1, 2013 at 12:42 AM

wrote May 16, 2013 at 9:30 AM

wrote May 16, 2013 at 9:30 AM

wrote Jun 14, 2013 at 6:53 AM