Main Class

This class is the entry point for your Code Nanite.

 

GetPrimaryKey.Functions.cs:

using System.Collections.Generic;
using System.ComponentModel.Composition;
using ZeraSystems.CodeStencil.Contracts;

namespace ZeraSystems.CodeNanite.Schema
{
    [Export(typeof(ICodeStencilCodeNanite))]
    [CodeStencilCodeNanite(new[]
    {
        "Zera Systems Inc.",                        // 0
        "Returns the Primaty Key of passed table",  // 1
        "..",                                       // 2
        "1.0",                                      // 3
        "GetPrimaryKey",                            // 4
        "ZeraSystems.CodeNanite.Schema",            // 5
        "10/10/2018",                               // 6
        "CS_PRIMARY_KEY",                           // 7
        "1",                                        // 8
        "",                                         // 9
        ""                                          // 10
    })]
    public partial class GetPrimaryKey : ExpansionBase, ICodeStencilCodeNanite
    {
        public string Input { get; set; }
        public string Output { get; set; }
        public int Counter { get; set; }
        public List<string> OutputList { get; set; }
        public List<ISchemaItem> SchemaItem { get; set; }
        public List<IExpander> Expander { get; set; }
        public List<string> InputList { get ; set; }

        public void ExecutePlugin()
        {
            Initializer(SchemaItem, Expander);
            MainFunction();
        }
    }

}

 

Meta Data

You have the option of specifying the meta data of the class via attributes. The are 11 positions defined.

 

Position Name Description
0 Publisher This is the name of the publisher
1 Title This contains more detailed information on the Code Nanite
2 Description This is the description of the Code Nanite
3 Version Number This is the version Number
4 Label Label of the Code Nanite. That is also the Class name
5 Namespace This is the namespace of the code nanite
6 Release Date This is the release date
7 Expander Label Name to use for Expander Label
8   Indicates that the Nanite is Schema Dependent
9 RESERVED  
10 RESERVED  

 

See "Properties" for explanation on Code Nanite Properties.

 

About CodeStencil

CodeStencil is Published and Marketed by Zera Systems Inc.





© 2018-2019 CodeStencil - Zera Systems Inc. All Rights Reserved.

No items in cart